mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
Image cache fixed -mig
This commit is contained in:
parent
530e74ff39
commit
6f4e21db18
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user