mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-16 04:28:05 +02:00
nothing to see here... move along, move along :)
svn path=/trunk/; revision=5965
This commit is contained in:
parent
0adbacbff9
commit
5e02b01b21
@ -337,12 +337,16 @@ g_hash_table_insert_internal (GHashTable *hash_table,
|
||||
node = g_hash_table_lookup_node (hash_table, key, &key_hash);
|
||||
|
||||
if (*node)
|
||||
{
|
||||
if (hash_table->key_destroy_func)
|
||||
{
|
||||
if (keep_new_key)
|
||||
{
|
||||
if (hash_table->key_destroy_func)
|
||||
hash_table->key_destroy_func ((*node)->key);
|
||||
(*node)->key = key;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (hash_table->key_destroy_func)
|
||||
hash_table->key_destroy_func (key);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user