[Genlist] add VIEW(it) check in _item_del_pre_process for abort test
authorSeunggyun Kim <sgyun.kim@samsung.com>
Tue, 14 May 2013 05:42:54 +0000 (14:42 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 04:58:23 +0000 (13:58 +0900)
Change-Id: Ieda682e4d032434a921eba6f63e64f44ef741c4a

src/lib/elm_genlist.c

index 7a7fecb..d4e96d8 100644 (file)
@@ -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