summaryrefslogtreecommitdiff
path: root/test/buffer-diff.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2007-03-01 18:14:33 -0500
committerBehdad Esfahbod <behdad@behdad.org>2007-03-01 18:14:33 -0500
commitbd2cd2c868864d5ec2a2c2e4bf16ff406be8afe2 (patch)
tree02098dd3f80a35dd59ad5ab95b5600ff1ece7f19 /test/buffer-diff.c
parent7de96a1faabfc2aa84dac38f5b63c2ba3538bb3c (diff)
downloadcairo-bd2cd2c868864d5ec2a2c2e4bf16ff406be8afe2.tar.gz
[test] Plug a leak in the test suite
Diffstat (limited to 'test/buffer-diff.c')
-rw-r--r--test/buffer-diff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/buffer-diff.c b/test/buffer-diff.c
index e4324ff2a..d111b238b 100644
--- a/test/buffer-diff.c
+++ b/test/buffer-diff.c
@@ -243,6 +243,7 @@ extract_sub_surface (cairo_surface_t **surface, int x, int y)
cairo_set_source_surface (cr, *surface, -x, -y);
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
cairo_paint (cr);
+ cairo_destroy (cr);
cairo_surface_destroy (*surface);
*surface = sub;