return edf;
}
+ if (!coll) return edf;
+
if (!edf->collection_hash)
edf->collection_hash = eina_hash_string_small_new(NULL);
- if (!coll) return edf;
-
edc = eina_hash_find(edf->collection_hash, coll);
if (edc)
{
}
if (edc_ret) *edc_ret = edc;
+ if (eina_hash_population(edf->collection_hash) == 0)
+ {
+ eina_hash_free(edf->collection_hash);
+ edf->collection_hash = NULL;
+ }
return edf;
}
edc->references--;
if (edc->references != 0) return;
eina_hash_del(edf->collection_hash, edc->part, edc);
- if (!eina_hash_population(edf->collection_hash))
+ if (eina_hash_population(edf->collection_hash) == 0)
{
eina_hash_free(edf->collection_hash);
edf->collection_hash = NULL;