diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-29 10:37:58 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-29 11:20:35 +0000 |
commit | 1659db2c1f4cc72e51fb43d119822ec7aaa77ac0 (patch) | |
tree | 0a996d7552d361226056225bd8f20f8e7b647c05 /test/device-offset-positive.c | |
parent | 0d757a793d7fe2860c6a522124a123864fc97f0a (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.c | 1 |
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); |