cache: hmm

This commit is contained in:
Alastair Poole 2021-01-19 13:24:43 +00:00
parent b361e81e9a
commit a3f38cb7b3
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,6 @@ evisum_ui_item_cache_steal(Evisum_Ui_Cache *cache, Eina_List *objs)
if (!found) if (!found)
{ {
cache->active = eina_list_remove_list(cache->active, l); cache->active = eina_list_remove_list(cache->active, l);
evas_object_del(it->obj);
free(it); free(it);
} }
} }
@ -147,7 +146,8 @@ evisum_ui_item_cache_free(Evisum_Ui_Cache *cache)
{ {
Item_Cache *it; Item_Cache *it;
evas_object_del(cache->parent); if (cache->parent)
evas_object_del(cache->parent);
EINA_LIST_FREE(cache->active, it) EINA_LIST_FREE(cache->active, it)
free(it); free(it);