If we set the data free callback of a hash, we expect it to be called when

calling all eina_hash_del functions.


SVN revision: 38102
This commit is contained in:
Cedric BAIL 2008-12-11 13:47:58 +00:00
parent 3e9459fd60
commit b8d721ac05
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ static Eina_Bool
_eina_hash_del_by_hash_el(Eina_Hash *hash, Eina_Hash_El *el, Eina_Hash_Head *eh, int key_hash)
{
eh->head = eina_rbtree_inline_remove(eh->head, EINA_RBTREE_GET(el), EINA_RBTREE_CMP_NODE_CB(_eina_hash_key_rbtree_cmp_node), hash->key_cmp_cb);
if (el->begin == EINA_FALSE) free(el);
_eina_hash_el_free(el, hash);
if (!eh->head)
{