From: Mathias Hasselmann Date: Thu, 6 Dec 2007 15:38:03 +0000 (+0000) Subject: Call destroy notify when destroying the hash table in g_hash_table_unref. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=bb10169eb41a736c1d109682c43f47cb18521d8b;p=dana%2Fcg-glib.git Call destroy notify when destroying the hash table in g_hash_table_unref. * glib/ghash.c: Call destroy notify when destroying the hash table in g_hash_table_unref. svn path=/trunk/; revision=6060 --- diff --git a/ChangeLog b/ChangeLog index 533271a7..64e58b7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-06 Mathias Hasselmann + + * glib/ghash.c: Call destroy notify when destroying + the hash table in g_hash_table_unref. + 2007-12-06 13:29:00 Tim Janik * glib/gtester.c (child_report_cb): detect non-blocking fd EOF diff --git a/glib/ghash.c b/glib/ghash.c index 0f7269f7..25597c3b 100644 --- a/glib/ghash.c +++ b/glib/ghash.c @@ -380,7 +380,7 @@ g_hash_table_unref (GHashTable *hash_table) if (g_atomic_int_exchange_and_add (&hash_table->ref_count, -1) - 1 == 0) { - g_hash_table_remove_all_nodes (hash_table, FALSE); + g_hash_table_remove_all_nodes (hash_table, TRUE); g_free (hash_table->nodes); g_slice_free (GHashTable, hash_table); }