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.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-10-08 13:35:07 -04:00
parent bf1eef174b
commit dd8ec36962
1 changed files with 4 additions and 1 deletions

View File

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