[cairo-commit] test/mask-transformed-image.c test/mask-transformed-similar.c
Chris Wilson
ickle at kemper.freedesktop.org
Wed Sep 24 10:43:46 PDT 2008
test/mask-transformed-image.c | 3 +++
test/mask-transformed-similar.c | 3 +++
2 files changed, 6 insertions(+)
New commits:
commit 88188eababa7c6dafeb064662a77b8f5f3719593
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Wed Sep 24 09:49:09 2008 +0100
[test] Memleak in new mask-ctm-* tests.
Add the forgotten cairo_surface_destroy().
diff --git a/test/mask-transformed-image.c b/test/mask-transformed-image.c
index 5906833..84901e7 100644
--- a/test/mask-transformed-image.c
+++ b/test/mask-transformed-image.c
@@ -90,6 +90,9 @@ draw (cairo_t *cr, int width, int height)
/* apply the mask */
cairo_mask_surface (cr, mask, 0, 0);
+ cairo_surface_destroy (mask);
+ cairo_surface_destroy (image);
+
return CAIRO_TEST_SUCCESS;
}
diff --git a/test/mask-transformed-similar.c b/test/mask-transformed-similar.c
index f4d46f6..ea28ea4 100644
--- a/test/mask-transformed-similar.c
+++ b/test/mask-transformed-similar.c
@@ -92,6 +92,9 @@ draw (cairo_t *cr, int width, int height)
/* apply the mask */
cairo_mask_surface (cr, mask, 0, 0);
+ cairo_surface_destroy (mask);
+ cairo_surface_destroy (image);
+
return CAIRO_TEST_SUCCESS;
}
More information about the cairo-commit
mailing list