[libshumate] map: Fix memory leak
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libshumate] map: Fix memory leak
- Date: Thu, 14 Oct 2021 04:57:55 +0000 (UTC)
commit bac5238d1094c7b7430522a5d6e492e9629db5f8
Author: James Westman <james jwestman net>
Date: Wed Oct 13 23:16:31 2021 -0500
map: Fix memory leak
The viewport was accidentally initialized twice, leaking the first one.
shumate/shumate-map.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/shumate/shumate-map.c b/shumate/shumate-map.c
index 7609fe3..64d3b4d 100644
--- a/shumate/shumate-map.c
+++ b/shumate/shumate-map.c
@@ -827,10 +827,6 @@ shumate_map_init (ShumateMap *self)
gtk_widget_set_cursor_from_name (GTK_WIDGET (self), "grab");
- /* Setup viewport */
- priv->viewport = shumate_viewport_new ();
-
- /* Setup license */
drag_gesture = gtk_gesture_drag_new ();
g_signal_connect_swapped (drag_gesture, "drag-begin", G_CALLBACK (on_drag_gesture_drag_begin), self);
g_signal_connect_swapped (drag_gesture, "drag-update", G_CALLBACK (on_drag_gesture_drag_update), self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]