From 2a75df2518785a335bef086471b92afb886d5d9e Mon Sep 17 00:00:00 2001 From: Seunggyun Kim Date: Tue, 14 May 2013 14:42:54 +0900 Subject: [PATCH] [Genlist] add VIEW(it) check in _item_del_pre_process for abort test Change-Id: Ieda682e4d032434a921eba6f63e64f44ef741c4a --- src/lib/elm_genlist.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 7a7fecb..d4e96d8 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -5321,14 +5321,16 @@ _item_del_pre_process(Elm_Gen_Item *it) it->tooltip.del_cb((void *)it->tooltip.data, WIDGET(it), it); _item_free_common(it); - edje_object_signal_callback_del_full(VIEW(it), "elm,action,expand,toggle", - "elm", _expand_toggle_signal_cb, it); - edje_object_signal_callback_del_full(VIEW(it), "elm,action,expand", "elm", - _expand_signal_cb, it); - edje_object_signal_callback_del_full(VIEW(it), "elm,action,contract", "elm", - _contract_signal_cb, it); - _item_mouse_callbacks_del(it, VIEW(it)); - + if (VIEW(it)) + { + edje_object_signal_callback_del_full(VIEW(it), "elm,action,expand,toggle", + "elm", _expand_toggle_signal_cb, it); + edje_object_signal_callback_del_full(VIEW(it), "elm,action,expand", "elm", + _expand_signal_cb, it); + edje_object_signal_callback_del_full(VIEW(it), "elm,action,contract", "elm", + _contract_signal_cb, it); + _item_mouse_callbacks_del(it, VIEW(it)); + } if (sd->genlist_clearing) _item_del_post_process(it); } #endif -- 2.7.4