evas: let's check NULL for destination object to.
authorCedric BAIL <cedric.bail@samsung.com>
Fri, 14 Mar 2014 02:44:49 +0000 (11:44 +0900)
committerCedric BAIL <cedric.bail@samsung.com>
Fri, 14 Mar 2014 02:44:49 +0000 (11:44 +0900)
Fix CID 1191976.

src/lib/evas/canvas/evas_object_image.c

index 7adc3ce..bee8651 100644 (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) &&