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>
This commit is contained in:
Pekka Paalanen 2012-01-03 10:23:24 +02:00
parent 07753fbe9c
commit 402ae6d6c2

View File

@ -367,6 +367,9 @@ destroy_surface(struct wl_resource *resource)
wl_list_remove(&surface->buffer_link); wl_list_remove(&surface->buffer_link);
pixman_region32_fini(&surface->damage);
pixman_region32_fini(&surface->opaque);
free(surface); free(surface);
} }