From 138d21464df551dddad4243efb0bc38226110957 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 30 Aug 2022 03:03:21 -0400 Subject: wlr_compositor: Don't leak region32 when calculating opaque region --- types/wlr_compositor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c index cb026783..f6bbcd02 100644 --- a/types/wlr_compositor.c +++ b/types/wlr_compositor.c @@ -386,6 +386,7 @@ static void surface_update_opaque_region(struct wlr_surface *surface) { } if (surface->opaque) { + pixman_region32_fini(&surface->opaque_region); pixman_region32_init_rect(&surface->opaque_region, 0, 0, surface->current.width, surface->current.height); return; -- cgit v1.2.3