[gnome-photos/gnome-3-20] header-bar: Plug memory leak



commit 207ee2ba1b3f9460d074b582f2858605ab5903c0
Author: Timm B├Ąder <mail baedert org>
Date:   Fri Apr 1 11:41:16 2016 +0200

    header-bar: Plug memory leak

 src/photos-header-bar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-header-bar.c b/src/photos-header-bar.c
index d753121..1240493 100644
--- a/src/photos-header-bar.c
+++ b/src/photos-header-bar.c
@@ -113,6 +113,8 @@ photos_header_bar_clear (PhotosHeaderBar *self)
   children = gtk_container_get_children (GTK_CONTAINER (self));
   for (l = children; l != NULL; l = l->next)
     gtk_widget_destroy (GTK_WIDGET (l->data));
+
+  g_list_free (children);
 }
 
 


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