diff --git a/gnome/ChangeLog b/gnome/ChangeLog index 51e01d658..ae5523be0 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,5 +1,8 @@ 1998-04-30 Miguel de Icaza + * gcache.c (image_cache_load_image): Federico spooted the problem: + I have to duplicate my keys for the hash. + * gmain.c (create_panels): Create one panel per directory specified. For some strange reason the code hangs if you start up more than one panel at once. This is not a gmc bug, it appears to diff --git a/gnome/gcache.c b/gnome/gcache.c index de1916f98..dadaa11d8 100644 --- a/gnome/gcache.c +++ b/gnome/gcache.c @@ -13,6 +13,7 @@ static void destroy_image_callback (gpointer key, gpointer data, gpointer user_data) { gdk_imlib_destroy_image (data); + g_free (key); } void @@ -36,7 +37,7 @@ image_cache_load_image (char *file) data = gdk_imlib_load_image (file); if (data){ - g_hash_table_insert (image_cache, file, data); + g_hash_table_insert (image_cache, g_strdup (file), data); } return data; }