Commit 030529e0 authored by Matthias Clasen's avatar Matthias Clasen

Avoid double-free problems

svn path=/trunk/; revision=18906
parent 2e74eec2
2007-10-12 Matthias Clasen <mclasne@redhat.com>
* gtk/updateiconcache.c: Avoid double-free problems by not
freeing data that may be cached elsewhere.
2007-10-10 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentmanager.c (gtk_recent_info_get_icon): Document
......
......@@ -199,13 +199,6 @@ typedef struct
guint icon_data_size;
} Image;
static void
free_icon_data (IconData *icon_data)
{
g_free (icon_data->attach_points);
g_strfreev (icon_data->display_names);
g_free (icon_data);
}
static gboolean
foreach_remove_func (gpointer key, gpointer value, gpointer user_data)
......@@ -219,7 +212,6 @@ foreach_remove_func (gpointer key, gpointer value, gpointer user_data)
{
/* just a .icon file, throw away */
g_free (key);
free_icon_data (image->icon_data);
g_free (image);
return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment