summaryrefslogtreecommitdiff
path: root/src/lib
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:19:20 +0900
commit75980ef76101a0859f889e76b6e5d97d33972846 (patch)
tree78766d30508b0135868c249ef6e487eae83a6357 /src/lib
parentec8ef6518d483207a5e4a065f63fe7277cb92829 (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
Diffstat (limited to 'src/lib')
-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 e49ade833..4268811cc 100644
--- a/src/lib/elm_main.c
+++ b/src/lib/elm_main.c
@@ -1837,6 +1837,7 @@ EAPI void elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb)
1837 1837
1838EAPI void elm_object_item_del(Elm_Object_Item *it) 1838EAPI void elm_object_item_del(Elm_Object_Item *it)
1839{ 1839{
1840 if (!it) return;
1840 _elm_widget_item_del((Elm_Widget_Item *)it); 1841 _elm_widget_item_del((Elm_Widget_Item *)it);
1841} 1842}
1842 1843