compositor: Only fini region if it's not the undef region

dev
Kristian Høgsberg 13 years ago
parent c9571fbd3a
commit 66a099b775
  1. 3
      src/compositor.c

@ -188,7 +188,8 @@ static const pixman_region32_data_t undef_region_data;
static void static void
undef_region(pixman_region32_t *region) 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; region->data = (pixman_region32_data_t *) &undef_region_data;
} }

Loading…
Cancel
Save