projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Call destroy notify when destroying the hash table in g_hash_table_unref.
[platform/upstream/glib.git]
/
glib
/
ghash.c
diff --git
a/glib/ghash.c
b/glib/ghash.c
index
0f7269f
..
25597c3
100644
(file)
--- 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)
{
if (g_atomic_int_exchange_and_add (&hash_table->ref_count, -1) - 1 == 0)
{
- g_hash_table_remove_all_nodes (hash_table,
FALS
E);
+ g_hash_table_remove_all_nodes (hash_table,
TRU
E);
g_free (hash_table->nodes);
g_slice_free (GHashTable, hash_table);
}
g_free (hash_table->nodes);
g_slice_free (GHashTable, hash_table);
}