projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
785404d
)
eo: if the pointer is incorrect, goto to the error handler.
author
Cedric BAIL
<cedric@osg.samsung.com>
Mon, 9 Apr 2018 23:53:28 +0000
(16:53 -0700)
committer
Wonki Kim
<wonki_.kim@samsung.com>
Thu, 31 May 2018 07:00:51 +0000
(16:00 +0900)
src/lib/eo/eo_base_class.c
patch
|
blob
|
history
diff --git
a/src/lib/eo/eo_base_class.c
b/src/lib/eo/eo_base_class.c
index
b2ee9a4
..
a3d62c0
100644
(file)
--- a/
src/lib/eo/eo_base_class.c
+++ b/
src/lib/eo/eo_base_class.c
@@
-666,6
+666,8
@@
_efl_object_parent_set(Eo *obj, Efl_Object_Data *pd, Eo *parent_id)
((parent_id) && (!_eo_id_domain_compatible(parent_id, obj))))
return;
+ EO_OBJ_POINTER_GOTO(obj, eo_obj, err_impossible);
+
// Invalidated object can not be bring back to life
if (pd->invalidate)
{
@@
-673,7
+675,6
@@
_efl_object_parent_set(Eo *obj, Efl_Object_Data *pd, Eo *parent_id)
return ;
}
- EO_OBJ_POINTER(obj, eo_obj);
if (pd->parent)
{
Efl_Object_Data *old_parent_pd = efl_data_scope_get(pd->parent,