git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@51991
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
else if (ce->ref)
{
ce->ref = NULL;
- edf->collection_cache = eina_list_prepend(edf->collection_cache, edc);
- _edje_cache_coll_clean(edf);
+
+ if (edf->dangling)
+ {
+ /* No need to keep the collection around if the file is dangling */
+ _edje_collection_free(edf, edc, ce);
+ _edje_cache_coll_flush(edf);
+ }
+ else
+ {
+ edf->collection_cache = eina_list_prepend(edf->collection_cache, edc);
+ _edje_cache_coll_clean(edf);
+ }
}
}