summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-09 16:53:28 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-01 10:39:01 -0700
commit79afb51626cef331a3d00e1d52a30057082b1a7b (patch)
tree7bef748939c28da2de5fc565ad82dc0986fa78d0 /src/lib/eo/eo_base_class.c
parent8f17ab22acdfae701423b018c5ed5219f3badf71 (diff)
eo: if the pointer is incorrect, goto to the error handler.
Diffstat (limited to '')
-rw-r--r--src/lib/eo/eo_base_class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index b2ee9a4a68..a3d62c079f 100644
--- 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)
666 ((parent_id) && (!_eo_id_domain_compatible(parent_id, obj)))) 666 ((parent_id) && (!_eo_id_domain_compatible(parent_id, obj))))
667 return; 667 return;
668 668
669 EO_OBJ_POINTER_GOTO(obj, eo_obj, err_impossible);
670
669 // Invalidated object can not be bring back to life 671 // Invalidated object can not be bring back to life
670 if (pd->invalidate) 672 if (pd->invalidate)
671 { 673 {
@@ -673,7 +675,6 @@ _efl_object_parent_set(Eo *obj, Efl_Object_Data *pd, Eo *parent_id)
673 return ; 675 return ;
674 } 676 }
675 677
676 EO_OBJ_POINTER(obj, eo_obj);
677 if (pd->parent) 678 if (pd->parent)
678 { 679 {
679 Efl_Object_Data *old_parent_pd = efl_data_scope_get(pd->parent, 680 Efl_Object_Data *old_parent_pd = efl_data_scope_get(pd->parent,