From 79afb51626cef331a3d00e1d52a30057082b1a7b Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Mon, 9 Apr 2018 16:53:28 -0700 Subject: [PATCH] eo: if the pointer is incorrect, goto to the error handler. --- src/lib/eo/eo_base_class.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) ((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,