efl: check that the object is not deleted or NULL before accessing it.

SVN revision: 80744
This commit is contained in:
Cedric BAIL 2012-12-12 09:45:49 +00:00
parent d5523905e4
commit ebd83134a4
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ evas_object_image_add(Evas *eo_e)
return NULL;
MAGIC_CHECK_END();
Evas_Public_Data *e = eo_data_get(eo_e, EVAS_CLASS);
EINA_SAFETY_ON_NULL_RETURN_VAL(e, NULL);
EINA_SAFETY_ON_NULL_RETURN_VAL(e->engine.func, NULL);
Evas_Object *eo_obj = eo_add(EVAS_OBJ_IMAGE_CLASS, eo_e);
eo_unref(eo_obj);