eina: let eina_hash_free behave like free.

SVN revision: 66694
This commit is contained in:
Cedric BAIL 2011-12-30 13:41:37 +00:00
parent d92a903ffe
commit fa3ca325d3
2 changed files with 6 additions and 1 deletions

View File

@ -177,3 +177,7 @@
2011-12-30 Vincent Torri
* Add Eina_Semaphore abstraction API.
2011-12-30 Cedric Bail
* Let eina_hash_free behave like free.

View File

@ -872,8 +872,9 @@ eina_hash_free_buckets(Eina_Hash *hash)
{
int i;
if (!hash) return ;
EINA_MAGIC_CHECK_HASH(hash);
EINA_SAFETY_ON_NULL_RETURN(hash);
if (hash->buckets)
{