summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:30:49 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commite6cb461ea69d31e7703fd0ff87ddaee059f994ff (patch)
tree34f8f10e7eb02add495289c446cb6944b9fc8235
parent4c405a28ca256718a5df8226d792c0c74f6d0866 (diff)
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
-rw-r--r--src/lib/elementary/elm_genlist.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 59a77e3b54..9217292132 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -1552,8 +1552,12 @@ _item_cache_free(Item_Cache *itc)
1552 if (!itc) return; 1552 if (!itc) return;
1553 1553
1554 evas_object_del(itc->spacer); 1554 evas_object_del(itc->spacer);
1555 efl_wref_del(itc->base_view, &itc->base_view); 1555 /* does not exist if cache item has just been reused */
1556 efl_del(itc->base_view); 1556 if (itc->base_view)
1557 {
1558 efl_wref_del(itc->base_view, &itc->base_view);
1559 efl_del(itc->base_view);
1560 }
1557 itc->item_class = NULL; 1561 itc->item_class = NULL;
1558 EINA_LIST_FREE(itc->contents, c) 1562 EINA_LIST_FREE(itc->contents, c)
1559 { 1563 {