object_item: Check null in elm_object_item_del.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 3 Mar 2014 09:17:32 +0000 (18:17 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 3 Mar 2014 09:20:53 +0000 (18:20 +0900)
As all EFL del/free APIs handle null as an exception,
   elm_object_item_del() should check null as well.
@fix

src/lib/elm_main.c

index 90981b0b7f810ce499ed51a8fa44932303cc0bb4..240c9f785c53938f9d52484195b9f44742370469 100644 (file)
@@ -1830,6 +1830,7 @@ EAPI void elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb)
 
 EAPI void elm_object_item_del(Elm_Object_Item *it)
 {
+   if (!it) return;
    _elm_widget_item_del((Elm_Widget_Item *)it);
 }