diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-10 21:01:36 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-10 21:01:36 +0100 |
commit | 9ecf2f7c4f6451d4a2c145a82184ba185be0a421 (patch) | |
tree | 164160168a36da38c13853b85dfa5daf2d7ebc4b /src/cairo-damage.c | |
parent | f4631dca371865f9aa747c61937c09d495f165e0 (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.c | 2 |
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) { |