From 105b0d75eee39db1410c3a8165e46d5344439ba1 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Mon, 23 Mar 2015 22:00:27 +0900 Subject: [PATCH] evas: prevent crash. if user delete the interceptor in the interceptor callback, the interceptors would be NULL. So we need to check whether it's valid or not. @fix --- src/lib/evas/canvas/evas_object_intercept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_object_intercept.c b/src/lib/evas/canvas/evas_object_intercept.c index a1c331d..7da2935 100644 --- a/src/lib/evas/canvas/evas_object_intercept.c +++ b/src/lib/evas/canvas/evas_object_intercept.c @@ -58,7 +58,7 @@ evas_object_intercept_cleanup(Evas_Object *eo_obj) ret = !!(obj->interceptors->Type.func); \ if (ret) \ obj->interceptors->Type.func(obj->interceptors->Type.data, eo_obj); \ - obj->interceptors->Type.intercepted = EINA_FALSE; \ + if (obj->interceptors) obj->interceptors->Type.intercepted = EINA_FALSE; \ return ret; \ } -- 2.7.4