evas: do not crash if constructor fail and invalidate is run on a partial object.

This commit is contained in:
Cedric BAIL 2018-05-15 14:53:13 -07:00
parent ccf320b06a
commit 75bb7c049f
1 changed files with 3 additions and 3 deletions

View File

@ -1316,8 +1316,8 @@ _efl_canvas_object_efl_object_invalidate(Eo *eo_obj, Evas_Object_Protected_Data
}
}
if (obj->cur->clipper) evas_object_clip_unset(eo_obj);
_efl_canvas_object_clip_prev_reset(obj, EINA_FALSE);
if (obj->cur && obj->cur->clipper) evas_object_clip_unset(eo_obj);
if (obj->prev) _efl_canvas_object_clip_prev_reset(obj, EINA_FALSE);
//Free event animations
while (obj->event_anims)
@ -1331,7 +1331,7 @@ _efl_canvas_object_efl_object_invalidate(Eo *eo_obj, Evas_Object_Protected_Data
_event_anim_free(event_anim, obj);
}
evas_object_map_set(eo_obj, NULL);
if (obj->map) evas_object_map_set(eo_obj, NULL);
if (obj->is_smart) evas_object_smart_del(eo_obj);
evas_object_change(eo_obj, obj);