diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-09-14 03:11:05 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-14 03:11:05 +0000 |
commit | 7d416fec1bc3f61376c3beb829e4044d3a183e5a (patch) | |
tree | 4d33b7eaeefa745fb6d4a14b79cbf93ebb8e17a1 /gtk/updateiconcache.c | |
parent | 463aab93dd04bb815f13ff8f17019071162a8ac3 (diff) | |
download | gtk+-7d416fec1bc3f61376c3beb829e4044d3a183e5a.tar.gz |
Fix a use-after-free bug. (#316256, Alexander Nedotsukov)
2005-09-14 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c (foreach_remove_func): Fix
a use-after-free bug. (#316256, Alexander Nedotsukov)
Diffstat (limited to 'gtk/updateiconcache.c')
-rw-r--r-- | gtk/updateiconcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 468f31a759..f3385b0547 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -144,9 +144,9 @@ foreach_remove_func (gpointer key, gpointer value, gpointer user_data) if (image->flags == HAS_ICON_FILE) { g_free (key); - g_free (image); g_free (image->attach_points); g_strfreev (image->display_names); + g_free (image); return TRUE; } |