diff options
author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-08-30 03:03:21 -0400 |
---|---|---|
committer | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-08-30 03:03:21 -0400 |
commit | 138d21464df551dddad4243efb0bc38226110957 (patch) | |
tree | baae1942f066ef304e1298ce26a92943c3be078e | |
parent | 78cf39b6bd7e82f6d55bb6ef2707f69da150e109 (diff) |
wlr_compositor: Don't leak region32 when calculating opaque region
-rw-r--r-- | types/wlr_compositor.c | 1 |
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; |