evas/cserve2: Close scaled images after drawing

This commit is contained in:
Jean-Philippe Andre 2013-06-11 12:55:04 +09:00 committed by Cedric Bail
parent 6f548d59af
commit 19fb35d657
1 changed files with 5 additions and 0 deletions

View File

@ -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