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>
This commit is contained in:
SangHyeon Jade Lee 2017-09-12 18:38:44 +09:00
parent 6c8ec7a319
commit 50149e95cd
1 changed files with 2 additions and 0 deletions

View File

@ -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));