summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-12-30 13:41:37 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-12-30 13:41:37 +0000
commitfa3ca325d32897fb71b5dacf16e37aad77225f80 (patch)
tree24ba0836c7f00a2cc8b4067daf8d5c00b46f53b9 /legacy
parentd92a903ffe28a6444f7c7d415402c7a46e6d6d05 (diff)
eina: let eina_hash_free behave like free.
SVN revision: 66694
Diffstat (limited to '')
-rw-r--r--legacy/eina/ChangeLog4
-rw-r--r--legacy/eina/src/lib/eina_hash.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/legacy/eina/ChangeLog b/legacy/eina/ChangeLog
index 638b828e71..8f0b210b09 100644
--- a/legacy/eina/ChangeLog
+++ b/legacy/eina/ChangeLog
@@ -177,3 +177,7 @@
1772011-12-30 Vincent Torri 1772011-12-30 Vincent Torri
178 178
179 * Add Eina_Semaphore abstraction API. 179 * Add Eina_Semaphore abstraction API.
180
1812011-12-30 Cedric Bail
182
183 * Let eina_hash_free behave like free.
diff --git a/legacy/eina/src/lib/eina_hash.c b/legacy/eina/src/lib/eina_hash.c
index 78c64831ed..51968945d1 100644
--- a/legacy/eina/src/lib/eina_hash.c
+++ b/legacy/eina/src/lib/eina_hash.c
@@ -872,8 +872,9 @@ eina_hash_free_buckets(Eina_Hash *hash)
872{ 872{
873 int i; 873 int i;
874 874
875 if (!hash) return ;
876
875 EINA_MAGIC_CHECK_HASH(hash); 877 EINA_MAGIC_CHECK_HASH(hash);
876 EINA_SAFETY_ON_NULL_RETURN(hash);
877 878
878 if (hash->buckets) 879 if (hash->buckets)
879 { 880 {