diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-29 20:34:56 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-30 10:16:23 +0100 |
commit | f08cc311af1248b39c3e757ef192515ed8506862 (patch) | |
tree | b8a0761e0f5181d471757be1522935abddb1d442 | |
parent | ab2776c9a16134c50b48fd202263421ec0f466e7 (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.
-rw-r--r-- | boilerplate/cairo-boilerplate.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |