mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 05:05:57 +01:00
wlr_compositor: Don't leak region32 when calculating opaque region
This commit is contained in:
parent
78cf39b6bd
commit
138d21464d
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue