aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_map.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2014-03-13 10:36:43 +0900
committerCedric BAIL <cedric.bail@samsung.com>2014-03-13 10:40:14 +0900
commit4dcf49c6e9b478b8115e82f312566f042f086c9a (patch)
treedb67cc6a7b5231465093b5a7ec5770c312d9a92c /src/lib/evas/canvas/evas_map.c
parentevas: the while guarantee that obj will be NULL, so let's not access it. (diff)
downloadefl-4dcf49c6e9b478b8115e82f312566f042f086c9a.tar.gz
evas: let's not access a potential NULL object when looping on a corrupted object list.
This fix CID 1191920.
Diffstat (limited to 'src/lib/evas/canvas/evas_map.c')
-rw-r--r--src/lib/evas/canvas/evas_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index d7cd29d7f6..142f6f04f4 100644
--- a/src/lib/evas/canvas/evas_map.c
+++ b/src/lib/evas/canvas/evas_map.c
@@ -484,8 +484,8 @@ _evas_object_map_enable_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bo
for (eo_parents = obj->smart.parent; eo_parents; eo_parents = parents->smart.parent)
{
parents = eo_data_scope_get(eo_parents, EVAS_OBJ_CLASS);
- if (parents)
- parents->child_has_map = EINA_TRUE;
+ if (!parents) break;
+ parents->child_has_map = EINA_TRUE;
}
}
else