[gtk+] gtkmenusectionbox: plug a leak



commit 6de82c9be303aabfc2a911b2231d38b18642b487
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 25 14:55:56 2015 +0200

    gtkmenusectionbox: plug a leak
    
    The list returned by gtk_container_get_children() wasn't being freed.

 gtk/gtkmenusectionbox.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c
index 1f38e1b..0557bc9 100644
--- a/gtk/gtkmenusectionbox.c
+++ b/gtk/gtkmenusectionbox.c
@@ -395,6 +395,8 @@ update_popover_position_cb (GObject    *source,
       else
         gtk_widget_set_valign (w, GTK_ALIGN_CENTER);
     }
+
+  g_list_free (children);
 }
 
 void


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