devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=dd8ec36962e5407c0f1dd0ef1ed4a8d521c0534a

commit dd8ec36962e5407c0f1dd0ef1ed4a8d521c0534a
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Oct 8 13:35:07 2015 -0400

    evas-wayland-shm: Don't leak rectangles during flush
    
    Summary: As we loop the regions of the output buffer and accumulate
    changes to post, we should be freeing the rectangles when we are done
    with them.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/modules/evas/engines/wayland_shm/evas_outbuf.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c 
b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index 484da13..89c0474 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -160,7 +160,10 @@ _evas_outbuf_flush(Outbuf *ob, Tilebuf_Rect *rects 
EINA_UNUSED, Evas_Render_Mode
 
         /* loop the buffer regions and assign to result */
         EINA_ARRAY_ITER_NEXT(&ob->priv.onebuf_regions, i, rect, it)
-          result[i] = *rect;
+          {
+             result[i] = *rect;
+             evas_rectangle_free(rect);
+          }
 
         _evas_shm_surface_post(ob->surface, result, n);
 

-- 


Reply via email to