aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-04-22 14:42:09 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-04-22 14:42:09 +0800
commit5a9741bb36bee05f95bde6b60a984282dfef1153 (patch)
treeccac0696d8ad1db348b0a64a7c66c325effe6ebc
parentabb9648eb5ab7a4cceadbf5054a794a84c9fe3cb (diff)
downloadgsoc2013-evolution-5a9741bb36bee05f95bde6b60a984282dfef1153.tar.gz
gsoc2013-evolution-5a9741bb36bee05f95bde6b60a984282dfef1153.tar.zst
gsoc2013-evolution-5a9741bb36bee05f95bde6b60a984282dfef1153.zip
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
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-icon-factory.c1
2 files changed, 6 insertions, 0 deletions
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 <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
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);