From d8914689d40fdd20388bdbf0d3b11c0506567df8 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 14 Mar 2014 11:44:49 +0900 Subject: [PATCH] evas: let's check NULL for destination object to. Fix CID 1191976. --- src/lib/evas/canvas/evas_object_image.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c index 7adc3ceb56..bee8651ea9 100644 --- a/src/lib/evas/canvas/evas_object_image.c +++ b/src/lib/evas/canvas/evas_object_image.c @@ -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) &&