From 5a9741bb36bee05f95bde6b60a984282dfef1153 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 22 Apr 2004 06:42:09 +0000 Subject: [PATCH] make sure we unlock if we fail to find an icon. 2004-04-22 Not Zed * 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 --- e-util/ChangeLog | 5 +++++ e-util/e-icon-factory.c | 1 + 2 files changed, 6 insertions(+) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index bd2dfd1f70..76c681c60f 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2004-04-22 Not Zed + + * 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 * e-icon-factory.c: Remove the warnings about using E_ICON_SIZE diff --git a/e-util/e-icon-factory.c b/e-util/e-icon-factory.c index 425e03c5ab..1a74c34ff0 100644 --- a/e-util/e-icon-factory.c +++ b/e-util/e-icon-factory.c @@ -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);