1
1

1999-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gicon.c (get_icon_set): Use iset->filename (which is a
	strdup()ed string) instead of filename as a key in the hash table,
	since the user will very likely free filename.
Этот коммит содержится в:
Miguel de Icaza 1999-03-17 03:20:59 +00:00
родитель 7313fee0b0
Коммит 86adbc6678
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1,5 +1,9 @@
1999-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gicon.c (get_icon_set): Use iset->filename (which is a
strdup()ed string) instead of filename as a key in the hash table,
since the user will very likely free filename.
* gdialogs.c (symlink_dialog): Finished implementing the new
symlink dialog.

Просмотреть файл

@ -141,7 +141,7 @@ get_icon_set (const char *filename)
/* Insert the icon information into the hash tables */
g_hash_table_insert (name_hash, (char *) filename, iset);
g_hash_table_insert (name_hash, iset->filename, iset);
g_hash_table_insert (image_hash, iset->plain, iset);
return iset;