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)
This commit is contained in:
Matthias Clasen
2005-09-14 03:13:24 +00:00
committed by Matthias Clasen
parent 61011d78f4
commit 8c4c96adc7
3 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2005-09-14 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c (foreach_remove_func): Fix
a use-after-free bug. (#316256, Alexander Nedotsukov)
2005-09-13 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c: Turn off profiling for the stable

View File

@@ -1,3 +1,8 @@
2005-09-14 Matthias Clasen <mclasen@redhat.com>
* gtk/updateiconcache.c (foreach_remove_func): Fix
a use-after-free bug. (#316256, Alexander Nedotsukov)
2005-09-13 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c: Turn off profiling for the stable

View File

@@ -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;
}