Commit 5e02b01b authored by Ryan Lortie's avatar Ryan Lortie

nothing to see here... move along, move along :)

svn path=/trunk/; revision=5965
parent 0adbacbf
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment