mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
nothing to see here... move along, move along :)
svn path=/trunk/; revision=5965
This commit is contained in:
parent
0adbacbff9
commit
5e02b01b21
10
glib/ghash.c
10
glib/ghash.c
@ -338,11 +338,15 @@ g_hash_table_insert_internal (GHashTable *hash_table,
|
||||
|
||||
if (*node)
|
||||
{
|
||||
if (hash_table->key_destroy_func)
|
||||
if (keep_new_key)
|
||||
{
|
||||
if (keep_new_key)
|
||||
if (hash_table->key_destroy_func)
|
||||
hash_table->key_destroy_func ((*node)->key);
|
||||
else
|
||||
(*node)->key = key;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hash_table->key_destroy_func)
|
||||
hash_table->key_destroy_func (key);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user