wlr_compositor: Don't leak region32 when calculating opaque region

This commit is contained in:
Alexander Orzechowski 2022-08-30 03:03:21 -04:00
parent 78cf39b6bd
commit 138d21464d

View file

@ -386,6 +386,7 @@ static void surface_update_opaque_region(struct wlr_surface *surface) {
} }
if (surface->opaque) { if (surface->opaque) {
pixman_region32_fini(&surface->opaque_region);
pixman_region32_init_rect(&surface->opaque_region, pixman_region32_init_rect(&surface->opaque_region,
0, 0, surface->current.width, surface->current.height); 0, 0, surface->current.width, surface->current.height);
return; return;