forked from enlightenment/efl
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:
parent
4c405a28ca
commit
e6cb461ea6
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue