forked from enlightenment/efl
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:
parent
bf1eef174b
commit
dd8ec36962
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue