projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdb21e1
)
object_item: Check null in elm_object_item_del.
author
Daniel Juyung Seo
<seojuyung2@gmail.com>
Mon, 3 Mar 2014 09:17:32 +0000
(18:17 +0900)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/src/lib/elm_main.c
b/src/lib/elm_main.c
index 90981b0b7f810ce499ed51a8fa44932303cc0bb4..240c9f785c53938f9d52484195b9f44742370469 100644
(file)
--- 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)
EAPI void elm_object_item_del(Elm_Object_Item *it)
{
+ if (!it) return;
_elm_widget_item_del((Elm_Widget_Item *)it);
}