mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 14:38:07 +02:00
compositor: Only fini region if it's not the undef region
This commit is contained in:
parent
c9571fbd3a
commit
66a099b775
1 changed files with 2 additions and 1 deletions
|
|
@ -188,7 +188,8 @@ static const pixman_region32_data_t undef_region_data;
|
|||
static void
|
||||
undef_region(pixman_region32_t *region)
|
||||
{
|
||||
pixman_region32_fini(region);
|
||||
if (region->data != &undef_region_data)
|
||||
pixman_region32_fini(region);
|
||||
region->data = (pixman_region32_data_t *) &undef_region_data;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue