summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-03 18:17:32 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-03 18:20:53 +0900
commitf730248508ac8fbb0e44df15d9389e5a51afc3bc (patch)
tree2b8211d89ebcbad21d2cf73f4f77ae1a03f97726
parentbdb21e1584fa7276059ef4671650c9968210933e (diff)
object_item: Check null in elm_object_item_del.
As all EFL del/free APIs handle null as an exception, elm_object_item_del() should check null as well. @fix
-rw-r--r--src/lib/elm_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c
index 90981b0b7..240c9f785 100644
--- a/src/lib/elm_main.c
+++ b/src/lib/elm_main.c
@@ -1830,6 +1830,7 @@ EAPI void elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb)
1830 1830
1831EAPI void elm_object_item_del(Elm_Object_Item *it) 1831EAPI void elm_object_item_del(Elm_Object_Item *it)
1832{ 1832{
1833 if (!it) return;
1833 _elm_widget_item_del((Elm_Widget_Item *)it); 1834 _elm_widget_item_del((Elm_Widget_Item *)it);
1834} 1835}
1835 1836