From: Seunggyun Kim Date: Tue, 14 May 2013 05:42:54 +0000 (+0900) Subject: [Genlist] add VIEW(it) check in _item_del_pre_process for abort test X-Git-Tag: accepted/tizen/20130927.071315^2~337 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a75df2518785a335bef086471b92afb886d5d9e;p=profile%2Fmobile%2Felementary.git [Genlist] add VIEW(it) check in _item_del_pre_process for abort test Change-Id: Ieda682e4d032434a921eba6f63e64f44ef741c4a --- 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