From 1659db2c1f4cc72e51fb43d119822ec7aaa77ac0 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 29 Nov 2008 10:37:58 +0000 Subject: [PATCH] [test] Fix surface leak from device-offset-positive. A forgotten cairo_surface_destroy() caused the similar surface to be leaked during the test. --- test/device-offset-positive.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/device-offset-positive.c b/test/device-offset-positive.c index 4ea9469d8..5afe9730d 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);