Image cache fixed -mig

This commit is contained in:
Miguel de Icaza 1998-04-30 06:15:29 +00:00
parent 530e74ff39
commit 6f4e21db18
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
1998-04-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* 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

View File

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