summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <dltkdgus1764@gmail.com>2017-09-12 18:38:44 +0900
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>2017-09-12 18:41:37 +0900
commit50149e95cdc04fea165009d164e45accc804f7d1 (patch)
tree73f9cf5ae95d1df8f72661fb2ef3d8d2c13669be
parent6c8ec7a3199d2e01dbebadf5ff86d4d94e2aeb40 (diff)
downloadefl-50149e95cdc04fea165009d164e45accc804f7d1.tar.gz
genlist: fix decorate mode dangling pointer in deletion
fix decorate mode crash issue reported by Jack Daniel in T6000 which is occured by dangling pointer in item deletion on decorate mode. Signed-off-by: SangHyeon Jade Lee <dltkdgus1764@gmail.com>
-rw-r--r--src/lib/elementary/elm_genlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 22b31a9cd0..9dc9c9809a 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -3693,6 +3693,8 @@ _elm_genlist_item_del_not_serious(Elm_Gen_Item *it)
sd->focused_item = NULL;
if (sd->last_selected_item == eo_it)
sd->last_selected_item = NULL;
+ if (sd->mode_item == it)
+ sd-> mode_item = NULL;
if (it->itc->func.del)
it->itc->func.del((void *)WIDGET_ITEM_DATA_GET(EO_OBJ(it)), WIDGET(it));