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
This commit is contained in:
ChunEon Park 2015-03-23 22:00:27 +09:00
parent 8e9a29cd0d
commit 105b0d75ee
1 changed files with 1 additions and 1 deletions

View 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; \
}