mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +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) {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue