[gtk+] places sidebar: Don't leak shortcuts



commit 3243ae6e0897e7d5708b361d09aa1e12aeaa435b
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jul 21 21:00:12 2015 -0400

    places sidebar: Don't leak shortcuts
    
    Poined out by valgrind.

 gtk/gtkplacessidebar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 5399af9..b8f9904 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -4025,6 +4025,9 @@ gtk_places_sidebar_dispose (GObject *object)
       sidebar->source_targets = NULL;
     }
 
+  g_slist_free_full (sidebar->shortcuts, g_object_unref);
+  sidebar->shortcuts = NULL;
+
   G_OBJECT_CLASS (gtk_places_sidebar_parent_class)->dispose (object);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]