hermet pushed a commit to branch efl-1.13.

http://git.enlightenment.org/core/efl.git/commit/?id=bb30fb6aea2a23017b46375a538b4016472b8da7

commit bb30fb6aea2a23017b46375a538b4016472b8da7
Author: ChunEon Park <chuneon.p...@samsung.com>
Date:   Mon Mar 23 22:00:27 2015 +0900

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

-- 


Reply via email to