gtkmenusectionbox: plug a leak
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 25 Jun 2015 12:55:56 +0000 (14:55 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 25 Jun 2015 13:09:56 +0000 (15:09 +0200)
The list returned by gtk_container_get_children() wasn't being freed.

gtk/gtkmenusectionbox.c

index 1f38e1b81f0bc9b7ebfd366186929e2ab65df1c8..0557bc9e2b57c511e211acc1e515002925e2d8fc 100644 (file)
@@ -395,6 +395,8 @@ update_popover_position_cb (GObject    *source,
       else
         gtk_widget_set_valign (w, GTK_ALIGN_CENTER);
     }
+
+  g_list_free (children);
 }
 
 void