summaryrefslogtreecommitdiff
path: root/src/cairo-damage.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-05-10 21:01:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-05-10 21:01:36 +0100
commit9ecf2f7c4f6451d4a2c145a82184ba185be0a421 (patch)
tree164160168a36da38c13853b85dfa5daf2d7ebc4b /src/cairo-damage.c
parentf4631dca371865f9aa747c61937c09d495f165e0 (diff)
damage: Prevent reducing an error object
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-damage.c')
-rw-r--r--src/cairo-damage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-damage.c b/src/cairo-damage.c
index 1809005f..06ef9fdf 100644
--- a/src/cairo-damage.c
+++ b/src/cairo-damage.c
@@ -185,7 +185,7 @@ _cairo_damage_reduce (cairo_damage_t *damage)
TRACE ((stderr, "%s: dirty=%d\n", __FUNCTION__,
damage ? damage->dirty : -1));
- if (damage == NULL || !damage->dirty)
+ if (damage == NULL || damage->status || !damage->dirty)
return damage;
if (damage->region) {