evas: prevent crash.
authorChunEon Park <chuneon.park@samsung.com>
Mon, 23 Mar 2015 13:00:27 +0000 (22:00 +0900)
committerChunEon Park <chuneon.park@samsung.com>
Mon, 23 Mar 2015 13:00:27 +0000 (22:00 +0900)
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

index a1c331d..7da2935 100644 (file)
@@ -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;                                                        \
   }