mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +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 (*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);
|
hash_table->key_destroy_func ((*node)->key);
|
||||||
else
|
(*node)->key = key;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (hash_table->key_destroy_func)
|
||||||
hash_table->key_destroy_func (key);
|
hash_table->key_destroy_func (key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user