From: Jean-Philippe Andre Date: Tue, 11 Jun 2013 03:55:04 +0000 (+0900) Subject: evas/cserve2: Close scaled images after drawing X-Git-Tag: submit/devel/efl/20131022.203902~691 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19fb35d657207c81004b8c4262821f0d0c20149f;p=platform%2Fupstream%2Fefl.git evas/cserve2: Close scaled images after drawing --- diff --git a/src/lib/evas/canvas/evas_object_image.c b/src/lib/evas/canvas/evas_object_image.c index b3bddb6..7ef73d5 100644 --- a/src/lib/evas/canvas/evas_object_image.c +++ b/src/lib/evas/canvas/evas_object_image.c @@ -3928,6 +3928,7 @@ evas_object_image_render(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj, v Image_Entry *ie; void *data = pixels; int w = imagew, h = imageh; + Eina_Bool mustclose = EINA_FALSE; ie = evas_cache2_image_scale_load ((Image_Entry *)pixels, @@ -3939,6 +3940,7 @@ evas_object_image_render(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj, v data = ie; w = iw; h = ih; + mustclose = EINA_TRUE; } _draw_image @@ -3950,6 +3952,9 @@ evas_object_image_render(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj, v iw, ih, o->cur->smooth_scale, do_async); + + if (mustclose) + evas_cache2_image_close(ie); } else #endif