hermet pushed a commit to branch master.

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

commit 105b0d75eee39db1410c3a8165e46d5344439ba1
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