From: Claudio Saavedra Date: Mon, 14 Sep 2009 09:57:04 +0000 (+0300) Subject: Properly free a GList and avoid potential memory corruption X-Git-Tag: 2.2.0-rc6~1 X-Git-Url: https://vcs.maemo.org/git/?p=hildon;a=commitdiff_plain;h=76090d6df089b1a69782006f5798843a87898eca Properly free a GList and avoid potential memory corruption --- diff --git a/ChangeLog b/ChangeLog index 6f9cdcb..1710e0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-09-14 Claudio Saavedra + + * hildon/hildon-window.c: (hildon_window_update_menu_flag): Properly + free a GList and avoid potential memory corruption. + 2009-09-11 Claudio Saavedra [2.2.0 Release Candidate 5] diff --git a/hildon/hildon-window.c b/hildon/hildon-window.c index 3d70b02..1d5e3e0 100644 --- a/hildon/hildon-window.c +++ b/hildon/hildon-window.c @@ -1366,7 +1366,7 @@ hildon_window_update_menu_flag (HildonWindow *self, { GList *menu_children = gtk_container_get_children (GTK_CONTAINER (priv->menu)); hildon_window_set_menu_flag (self, priv->menu != NULL && menu_children != NULL); - g_free (menu_children); + g_list_free (menu_children); } } }