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:
parent
07753fbe9c
commit
402ae6d6c2
@ -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…
Reference in New Issue
Block a user