projects
/
hildon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Properly free a GList and avoid potential memory corruption
[hildon]
/
hildon
/
hildon-window.c
diff --git
a/hildon/hildon-window.c
b/hildon/hildon-window.c
index
3d70b02
..
1d5e3e0
100644
(file)
--- 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);
}
}
}