From b8d721ac051bd88ee9012615fd27e05de3b4adce Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 11 Dec 2008 13:47:58 +0000 Subject: [PATCH] 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 --- legacy/eina/src/lib/eina_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/eina/src/lib/eina_hash.c b/legacy/eina/src/lib/eina_hash.c index 9a09913233..cc4e49d57e 100644 --- a/legacy/eina/src/lib/eina_hash.c +++ b/legacy/eina/src/lib/eina_hash.c @@ -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) {