mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-12 12:14:06 +02:00
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
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2007-12-06 Mathias Hasselmann <mathias@openismus.com>
|
||||||
|
|
||||||
|
* glib/ghash.c: Call destroy notify when destroying
|
||||||
|
the hash table in g_hash_table_unref.
|
||||||
|
|
||||||
2007-12-06 13:29:00 Tim Janik <timj@imendio.com>
|
2007-12-06 13:29:00 Tim Janik <timj@imendio.com>
|
||||||
|
|
||||||
* glib/gtester.c (child_report_cb): detect non-blocking fd EOF
|
* glib/gtester.c (child_report_cb): detect non-blocking fd EOF
|
||||||
|
@@ -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)
|
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_free (hash_table->nodes);
|
||||||
g_slice_free (GHashTable, hash_table);
|
g_slice_free (GHashTable, hash_table);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user