summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-04-29 20:34:56 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-04-30 10:16:23 +0100
commitf08cc311af1248b39c3e757ef192515ed8506862 (patch)
treeb8a0761e0f5181d471757be1522935abddb1d442 /boilerplate
parentab2776c9a16134c50b48fd202263421ec0f466e7 (diff)
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.
Diffstat (limited to 'boilerplate')
-rw-r--r--boilerplate/cairo-boilerplate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate.c b/boilerplate/cairo-boilerplate.c
index cc082801c..e0bf51a4b 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);