Use the node destroy function when removing values.

SVN revision: 9991
This commit is contained in:
rbdpngn 2004-05-01 17:30:34 +00:00 committed by rbdpngn
parent c14dcbb000
commit 31007f3255
1 changed files with 3 additions and 2 deletions

View File

@ -345,9 +345,10 @@ void *ecore_hash_remove(Ecore_Hash *hash, void *key)
if (node) {
ecore_list_remove(list);
ret = node->value;
FREE(node);
node->value = NULL;
_ecore_hash_node_destroy(node, hash->free_key,
hash->free_value);
}
}