make sure we unlock if we fail to find an icon.
2004-04-22 Not Zed <NotZed@Ximian.com> * e-icon-factory.c (e_icon_factory_get_icon_list): make sure we unlock if we fail to find an icon. svn path=/trunk/; revision=25577
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2004-04-22 Not Zed <NotZed@Ximian.com>
|
||||
|
||||
* e-icon-factory.c (e_icon_factory_get_icon_list): make sure we
|
||||
unlock if we fail to find an icon.
|
||||
|
||||
2004-04-21 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* e-icon-factory.c: Remove the warnings about using E_ICON_SIZE
|
||||
|
||||
@ -257,6 +257,7 @@ e_icon_factory_get_icon_list (const char *icon_name)
|
||||
|
||||
icon = icon_new (icon_name, NULL);
|
||||
g_hash_table_insert (name_to_icon, icon->name, icon);
|
||||
pthread_mutex_unlock(&lock);
|
||||
return NULL;
|
||||
} else {
|
||||
g_hash_table_insert (name_to_icon, icon->name, icon);
|
||||
|
||||
Reference in New Issue
Block a user