evas: let's check NULL for destination object to.

Fix CID 1191976.
This commit is contained in:
Cedric BAIL 2014-03-14 11:44:49 +09:00
parent f2a1f14abd
commit d8914689d4
1 changed files with 6 additions and 1 deletions

View File

@ -598,7 +598,12 @@ _evas_image_source_set(Eo *eo_obj, Evas_Image_Data *o, Evas_Object *eo_src)
}
if (!src->layer)
{
CRI("No evas surface associated with source object (%p)", eo_obj);
CRI("No evas surface associated with source object (%p)", eo_src);
return EINA_FALSE;
}
if (!obj->layer)
{
CRI("No evas surface associated with destination object (%p)", eo_obj);
return EINA_FALSE;
}
if ((obj->layer && src->layer) &&