mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Return a g_strdup()ed copy of the value stored in the hash table, so that
2005-10-19 Tor Lillqvist <tml@novell.com> * glib/gwin32.c (g_win32_get_package_installation_directory): Return a g_strdup()ed copy of the value stored in the hash table, so that it can be g_free()d without leaving a dangling pointer in the hash table. (#319232)
This commit is contained in:
parent
9fc6575576
commit
bf58342275
@ -1,3 +1,10 @@
|
||||
2005-10-19 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gwin32.c (g_win32_get_package_installation_directory):
|
||||
Return a g_strdup()ed copy of the value stored in the hash table,
|
||||
so that it can be g_free()d without leaving a dangling pointer in
|
||||
the hash table. (#319232)
|
||||
|
||||
2005-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate_key_for_filename): Handle
|
||||
|
@ -1,3 +1,10 @@
|
||||
2005-10-19 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gwin32.c (g_win32_get_package_installation_directory):
|
||||
Return a g_strdup()ed copy of the value stored in the hash table,
|
||||
so that it can be g_free()d without leaving a dangling pointer in
|
||||
the hash table. (#319232)
|
||||
|
||||
2005-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate_key_for_filename): Handle
|
||||
|
@ -1,3 +1,10 @@
|
||||
2005-10-19 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gwin32.c (g_win32_get_package_installation_directory):
|
||||
Return a g_strdup()ed copy of the value stored in the hash table,
|
||||
so that it can be g_free()d without leaving a dangling pointer in
|
||||
the hash table. (#319232)
|
||||
|
||||
2005-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate_key_for_filename): Handle
|
||||
|
@ -1318,7 +1318,7 @@ g_win32_get_package_installation_directory (gchar *package,
|
||||
{
|
||||
g_hash_table_insert (package_dirs, package, result);
|
||||
G_UNLOCK (package_dirs);
|
||||
return result;
|
||||
return g_strdup (result);
|
||||
}
|
||||
G_UNLOCK (package_dirs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user