summaryrefslogtreecommitdiff
path: root/test/device-offset-positive.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-11-29 10:37:58 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-11-29 11:20:35 +0000
commit1659db2c1f4cc72e51fb43d119822ec7aaa77ac0 (patch)
tree0a996d7552d361226056225bd8f20f8e7b647c05 /test/device-offset-positive.c
parent0d757a793d7fe2860c6a522124a123864fc97f0a (diff)
[test] Fix surface leak from device-offset-positive.
A forgotten cairo_surface_destroy() caused the similar surface to be leaked during the test.
Diffstat (limited to 'test/device-offset-positive.c')
-rw-r--r--test/device-offset-positive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/device-offset-positive.c b/test/device-offset-positive.c
index 4ea9469d..5afe9730 100644
--- a/test/device-offset-positive.c
+++ b/test/device-offset-positive.c
@@ -67,6 +67,7 @@ draw (cairo_t *cr, int width, int height)
cairo_destroy (cr2);
cairo_surface_set_device_offset (surface, + SIZE / 2, + SIZE / 2);
cairo_set_source_surface (cr, surface, SIZE / 2, SIZE / 2);
+ cairo_surface_destroy (surface);
cairo_paint (cr);