compositor: Only fini region if it's not the undef region
This commit is contained in:
parent
c9571fbd3a
commit
66a099b775
@ -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…
x
Reference in New Issue
Block a user