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:
Not Zed
2004-04-22 06:42:09 +00:00
committed by Michael Zucci
parent abb9648eb5
commit 5a9741bb36
2 changed files with 6 additions and 0 deletions

View File

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

View File

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