mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Bug 567138 - get_package_directory_from_module() does not free its lock
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. svn path=/trunk/; revision=7794
This commit is contained in:
parent
f8cfff0686
commit
eeb4d5939d
@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
||||
2009-01-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version
|
||||
|
@ -298,14 +298,19 @@ get_package_directory_from_module (const gchar *module_name)
|
||||
hmodule = GetModuleHandleW (wc_module_name);
|
||||
g_free (wc_module_name);
|
||||
|
||||
if (!hmodule)
|
||||
if (!hmodule){
|
||||
G_UNLOCK (module_dirs);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
fn = g_win32_get_package_installation_directory_of_module (hmodule);
|
||||
|
||||
if (fn == NULL)
|
||||
{
|
||||
G_UNLOCK (module_dirs);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
g_hash_table_insert (module_dirs, module_name ? g_strdup (module_name) : "", fn);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user