summaryrefslogtreecommitdiff
path: root/test/clip-image.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-03-23 08:16:57 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-03-23 08:16:57 +0000
commitbfc027ac6d05f489d0d26110c225d2871be0971c (patch)
tree418a51bdee3aff6ceed073c19023f27283e4a99c /test/clip-image.c
parente214f09d633093ce9b2ca0bffce10bc68a6e30b0 (diff)
downloadcairo-bfc027ac6d05f489d0d26110c225d2871be0971c.tar.gz
test/clip-image: Free image after use.
Diffstat (limited to 'test/clip-image.c')
-rw-r--r--test/clip-image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/clip-image.c b/test/clip-image.c
index e3c88095b..68ed142d6 100644
--- a/test/clip-image.c
+++ b/test/clip-image.c
@@ -41,6 +41,7 @@ draw (cairo_t *cr, int width, int height)
image = cairo_test_create_surface_from_png (ctx, png_filename);
cairo_set_source_surface (cr, image, 0, 0);
+ cairo_surface_destroy (image);
/* simple clip */
cairo_save (cr);