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 <ppaalanen@gmail.com>
dev
Pekka Paalanen 13 years ago
parent 07753fbe9c
commit 402ae6d6c2
  1. 3
      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);
}

Loading…
Cancel
Save