Fix order of free during hash free.

SVN revision: 37572
This commit is contained in:
Cedric BAIL 2008-11-10 14:32:14 +00:00
parent 2adbc70d6b
commit aa82395cc1
1 changed files with 1 additions and 1 deletions

View File

@ -304,9 +304,9 @@ _eina_hash_find_by_data(const Eina_Hash *hash, const void *data, int *key_hash,
static void
_eina_hash_el_free(Eina_Hash_El *el, Eina_Hash *hash)
{
if (el->begin == EINA_FALSE) free(el);
if (hash->data_free_cb)
hash->data_free_cb(el->tuple.data);
if (el->begin == EINA_FALSE) free(el);
}
static void