From f08cc311af1248b39c3e757ef192515ed8506862 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 29 Apr 2010 20:34:56 +0100 Subject: boilerplate: Destroy the redundant image reference When using a script surface to record the recording surface, we replace the local reference to the image surface. --- boilerplate/cairo-boilerplate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'boilerplate') diff --git a/boilerplate/cairo-boilerplate.c b/boilerplate/cairo-boilerplate.c index cc082801..e0bf51a4 100644 --- a/boilerplate/cairo-boilerplate.c +++ b/boilerplate/cairo-boilerplate.c @@ -223,6 +223,8 @@ _cairo_boilerplate_get_image_surface (cairo_surface_t *src, cairo_device_t *ctx; char *filename; + cairo_surface_destroy (surface); + xasprintf (&filename, "%s.out.trace", test_name); ctx = cairo_script_create (filename); surface = cairo_script_surface_create_for_target (ctx, image); -- cgit v1.2.3