[PATCH weston 1/2] window: Plug leak of shm_surface_data on shm_suface_data_destroy()
Ander Conselvan de Oliveira
ander.conselvan.de.oliveira at intel.com
Tue Jun 19 03:45:55 PDT 2012
This was causing a leak on every frame when using shm buffers.
---
clients/window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/clients/window.c b/clients/window.c
index 36caeb3..aaf2009 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -422,6 +422,8 @@ shm_surface_data_destroy(void *p)
wl_buffer_destroy(data->data.buffer);
if (data->pool)
shm_pool_destroy(data->pool);
+
+ free(data);
}
static struct wl_shm_pool *
--
1.7.4.1
More information about the wayland-devel
mailing list