From 402ae6d6c257e8ae09d081c5783f075903906542 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 3 Jan 2012 10:23:24 +0200 Subject: [PATCH] compositor: free region members on surface destroy The two pixman regions of struct wlsc_surface were not being freed properly. Fixes some Valgrind errors. Signed-off-by: Pekka Paalanen --- compositor/compositor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compositor/compositor.c b/compositor/compositor.c index c3211e54..d710d5fe 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -367,6 +367,9 @@ destroy_surface(struct wl_resource *resource) wl_list_remove(&surface->buffer_link); + pixman_region32_fini(&surface->damage); + pixman_region32_fini(&surface->opaque); + free(surface); }