summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-10-19 15:11:28 +0000
committerTor Lillqvist <tml@src.gnome.org>2005-10-19 15:11:28 +0000
commit77d1b9697160d50481db8b94593894bf4f08845b (patch)
treec5b089c66e6846bb85589a9e5bb98560f396183d
parentb13bd0317654daf7469cbe68a1550d4432da8917 (diff)
downloadglib-77d1b9697160d50481db8b94593894bf4f08845b.tar.gz
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)
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-2-107
-rw-r--r--ChangeLog.pre-2-127
-rw-r--r--glib/gwin32.c2
4 files changed, 22 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a56cf23e7..114191b67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index a56cf23e7..114191b67 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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
diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12
index a56cf23e7..114191b67 100644
--- a/ChangeLog.pre-2-12
+++ b/ChangeLog.pre-2-12
@@ -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
diff --git a/glib/gwin32.c b/glib/gwin32.c
index 4e9bfc448..57d57ca66 100644
--- a/glib/gwin32.c
+++ b/glib/gwin32.c
@@ -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);
}