glib r7796 - in branches/glib-2-18: . glib



Author: tml
Date: Fri Jan  9 10:39:46 2009
New Revision: 7796
URL: http://svn.gnome.org/viewvc/glib?rev=7796&view=rev

Log:
2009-01-09  Tor Lillqvist  <tml iki fi>

	Bug 567138 - get_package_directory_from_module() does not free its
	lock when failing

	* glib/gwin32.c (get_package_directory_from_module): Obvious fix.



Modified:
   branches/glib-2-18/ChangeLog
   branches/glib-2-18/glib/gwin32.c

Modified: branches/glib-2-18/glib/gwin32.c
==============================================================================
--- branches/glib-2-18/glib/gwin32.c	(original)
+++ branches/glib-2-18/glib/gwin32.c	Fri Jan  9 10:39:46 2009
@@ -299,13 +299,19 @@
       g_free (wc_module_name);
 
       if (!hmodule)
-	return NULL;
+	{
+	  G_UNLOCK (module_dirs);
+	  return NULL;
+	}
     }
 
   fn = g_win32_get_package_installation_directory_of_module (hmodule);
 
   if (fn == NULL)
-    return NULL;
+    {
+      G_UNLOCK (module_dirs);
+      return NULL;
+    }
   
   g_hash_table_insert (module_dirs, module_name ? g_strdup (module_name) : "", fn);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]