summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-29 16:49:45 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-29 16:49:45 -0400
commit66a099b77554c841d32a287f6974332cfb4b348f (patch)
tree04e427076ce0f6653f76e09b863525d9e4c07557
parentc9571fbd3aae7d73ef68d4c578b2767ffdbf85d5 (diff)
compositor: Only fini region if it's not the undef region
-rw-r--r--src/compositor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c
index d21459b..b82ba08 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -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;
}