damage: Prevent accumulating damage to an error object

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-10 21:00:49 +01:00
parent 50e51389bd
commit f4631dca37

View file

@ -92,6 +92,9 @@ _cairo_damage_add_boxes(cairo_damage_t *damage,
if (damage == NULL)
damage = _cairo_damage_create ();
if (damage->status)
return damage;
damage->dirty += count;