cedric pushed a commit to branch master.

commit 19fb35d657207c81004b8c4262821f0d0c20149f
Author: Jean-Philippe Andre <[email protected]>
Date:   Tue Jun 11 12:55:04 2013 +0900

    evas/cserve2: Close scaled images after drawing
---
 src/lib/evas/canvas/evas_object_image.c | 5 +++++
 1 file changed, 5 insertions(+)

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

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to