summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eina/eina_cow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_cow.c b/src/lib/eina/eina_cow.c
index 0d7dd3a4b7..ca99f5c596 100644
--- a/src/lib/eina/eina_cow.c
+++ b/src/lib/eina/eina_cow.c
@@ -430,6 +430,7 @@ eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data **data)
430#endif 430#endif
431 ref->refcount--; 431 ref->refcount--;
432 432
433 if (ref->refcount == 0) _eina_cow_hash_del(cow, *data, ref);
433 *data = (Eina_Cow_Data*) cow->default_value; 434 *data = (Eina_Cow_Data*) cow->default_value;
434 435
435 if (ref->refcount > 0) 436 if (ref->refcount > 0)
@@ -443,7 +444,6 @@ eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data **data)
443#ifdef EINA_COW_MAGIC_ON 444#ifdef EINA_COW_MAGIC_ON
444 EINA_MAGIC_SET(ref, EINA_MAGIC_NONE); 445 EINA_MAGIC_SET(ref, EINA_MAGIC_NONE);
445#endif 446#endif
446 _eina_cow_hash_del(cow, *data, ref);
447 _eina_cow_togc_del(cow, ref); 447 _eina_cow_togc_del(cow, ref);
448 eina_mempool_free(cow->pool, (void*) ref); 448 eina_mempool_free(cow->pool, (void*) ref);
449} 449}