elm/genlist: handle cache item deletion without errors

Summary:
@fix
Depends on D8994

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8995
This commit is contained in:
Mike Blumenkrantz 2019-05-29 09:30:49 -04:00
parent 4c405a28ca
commit e6cb461ea6
1 changed files with 6 additions and 2 deletions

View File

@ -1552,8 +1552,12 @@ _item_cache_free(Item_Cache *itc)
if (!itc) return;
evas_object_del(itc->spacer);
efl_wref_del(itc->base_view, &itc->base_view);
efl_del(itc->base_view);
/* does not exist if cache item has just been reused */
if (itc->base_view)
{
efl_wref_del(itc->base_view, &itc->base_view);
efl_del(itc->base_view);
}
itc->item_class = NULL;
EINA_LIST_FREE(itc->contents, c)
{