evas-wayland-shm: Free allocated rectangle after sending damages
authorChris Michael <cp.michael@samsung.com>
Tue, 29 Jul 2014 21:02:04 +0000 (17:02 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 29 Jul 2014 21:45:24 +0000 (17:45 -0400)
We allocate a new eina_rectangle here, but we never free it after
sending damages to the surface.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/wayland_shm/evas_swapper.c

index d2a14735e5b4d4a6194184219ea00bfe53286949..83bf677a74fe7fa6f555ff24e9f74363117158d3 100644 (file)
@@ -515,6 +515,8 @@ _evas_swapper_buffer_put(Wl_Swapper *ws, Wl_Buffer *wb, Eina_Rectangle *rects, u
 
    /* surface commit */
    wl_surface_commit(ws->surface);
+
+   eina_rectangle_free(rect);
 }
 
 static void