* edje: cleanup collection early if the file is dangling.

SVN revision: 51991
This commit is contained in:
Cedric BAIL 2010-09-08 13:45:21 +00:00
parent 3bec660090
commit 6e63db7303
1 changed files with 12 additions and 2 deletions

View File

@ -424,8 +424,18 @@ _edje_cache_coll_unref(Edje_File *edf, Edje_Part_Collection *edc)
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);
}
}
}