diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-29 16:49:45 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-29 16:49:45 -0400 |
commit | 66a099b77554c841d32a287f6974332cfb4b348f (patch) | |
tree | 04e427076ce0f6653f76e09b863525d9e4c07557 | |
parent | c9571fbd3aae7d73ef68d4c578b2767ffdbf85d5 (diff) |
compositor: Only fini region if it's not the undef region
-rw-r--r-- | src/compositor.c | 3 |
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; } |