aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-02-06 10:46:00 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-02-06 10:51:50 -0800
commit1b4a2c0ac9de70602021ddf6e2b0f60388b4883b (patch)
tree53167b35e0964f0195f82e5b3b49ebc7666b6db6
parentevas: harden check on map presence. (diff)
downloadefl-1b4a2c0ac9de70602021ddf6e2b0f60388b4883b.tar.gz
evas: more hardening of evas access map.x
-rw-r--r--src/lib/evas/canvas/evas_object_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c
index b245454be8..4ebb7486f5 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -231,7 +231,7 @@ evas_object_clip_recalc(Evas_Object_Protected_Data *obj)
evas_object_coords_recalc(eo_obj, obj);
- if (EINA_UNLIKELY((obj->map->cur.map) && (obj->map->cur.usemap)))
+ if (EINA_UNLIKELY((!!obj->map) && (obj->map->cur.map) && (obj->map->cur.usemap)))
{
cx = obj->map->cur.map->normal_geometry.x;
cy = obj->map->cur.map->normal_geometry.y;