[cairo-commit] src/cairo-damage.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu May 10 12:59:17 PDT 2012
src/cairo-damage.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 50e51389bd4108942fdc7a5f029b3171b0c1f11a
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu May 10 20:57:30 2012 +0100
damage: Avoid freeing the NIL error object
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/cairo-damage.c b/src/cairo-damage.c
index f0a7306..269f6df 100644
--- a/src/cairo-damage.c
+++ b/src/cairo-damage.c
@@ -69,6 +69,9 @@ _cairo_damage_destroy (cairo_damage_t *damage)
{
struct _cairo_damage_chunk *chunk, *next;
+ if (damage == (cairo_damage_t *) &__cairo_damage__nil)
+ return;
+
for (chunk = damage->chunks.next; chunk != NULL; chunk = next) {
next = chunk->next;
free (chunk);
More information about the cairo-commit
mailing list