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

svn path=/trunk/; revision=5965
This commit is contained in:
Ryan Lortie 2007-11-28 03:58:08 +00:00
parent 0adbacbff9
commit 5e02b01b21

View File

@ -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);
}