evas: let's not access a potential NULL object when looping on a corrupted object list.

This fix CID 1191920.
This commit is contained in:
Cedric BAIL 2014-03-13 10:36:43 +09:00
parent 34c836ec60
commit 4dcf49c6e9
1 changed files with 2 additions and 2 deletions

View File

@ -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