aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-30 03:03:21 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-30 03:03:21 -0400
commit138d21464df551dddad4243efb0bc38226110957 (patch)
treebaae1942f066ef304e1298ce26a92943c3be078e
parent78cf39b6bd7e82f6d55bb6ef2707f69da150e109 (diff)
wlr_compositor: Don't leak region32 when calculating opaque region
-rw-r--r--types/wlr_compositor.c1
1 files changed, 1 insertions, 0 deletions
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;