[PATCH weston 2/5] Fix memory leak on compositor exit

Daniel Stone daniel at fooishbar.org
Mon Jul 23 11:54:58 PDT 2012


Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 src/compositor.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compositor.c b/src/compositor.c
index 19d5acf..132f09f 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -3283,6 +3283,8 @@ weston_compositor_shutdown(struct weston_compositor *ec)
 	wl_array_release(&ec->indices);
 
 	wl_event_loop_destroy(ec->input_loop);
+
+	pixman_region32_fini(&ec->damage);
 }
 
 static int on_term_signal(int signal_number, void *data)
-- 
1.7.10.4



More information about the wayland-devel mailing list