mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-17 06:59:43 -05: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…
Add table
Add a link
Reference in a new issue