From bd2cd2c868864d5ec2a2c2e4bf16ff406be8afe2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 1 Mar 2007 18:14:33 -0500 Subject: [PATCH] [test] Plug a leak in the test suite --- test/buffer-diff.c | 1 + 1 file changed, 1 insertion(+) 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;