diff --git a/src/lib/evas/canvas/evas_object_intercept.c b/src/lib/evas/canvas/evas_object_intercept.c index fd904f7708..c4a4b44f51 100644 --- a/src/lib/evas/canvas/evas_object_intercept.c +++ b/src/lib/evas/canvas/evas_object_intercept.c @@ -15,8 +15,12 @@ static void evas_object_intercept_deinit(Evas_Object *eo_obj); static void evas_object_intercept_init(Evas_Object *eo_obj) { - Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); - if (!obj || !obj->interceptors) + Evas_Object_Protected_Data *obj; + + obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); + if (!obj) return; + + if (!obj->interceptors) obj->interceptors = calloc(1, sizeof(Evas_Intercept_Func)); }