mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 12:58:00 +02:00
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:
parent
ab2776c9a1
commit
f08cc311af
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue