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.
This commit is contained in:
Chris Wilson 2010-04-29 20:34:56 +01:00
parent ab2776c9a1
commit f08cc311af

View file

@ -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);