From 3e6177d2ddaa2222b7ea9b6c618f188e8005b56a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 21 Jul 2015 19:10:04 -0400 Subject: [PATCH] places sidebar: Plug a memory leak --- gtk/gtkplacessidebar.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index a288292b70..5399af939b 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -4019,6 +4019,12 @@ gtk_places_sidebar_dispose (GObject *object) g_clear_object (&sidebar->long_press_gesture); + if (sidebar->source_targets) + { + gtk_target_list_unref (sidebar->source_targets); + sidebar->source_targets = NULL; + } + G_OBJECT_CLASS (gtk_places_sidebar_parent_class)->dispose (object); }