forked from enlightenment/efl
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:
parent
8e9a29cd0d
commit
105b0d75ee
|
@ -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; \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue