summaryrefslogtreecommitdiff
path: root/test/cairo-test-trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/cairo-test-trace.c')
-rw-r--r--test/cairo-test-trace.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/cairo-test-trace.c b/test/cairo-test-trace.c
index 3be54027..c35d6a7e 100644
--- a/test/cairo-test-trace.c
+++ b/test/cairo-test-trace.c
@@ -864,14 +864,17 @@ static void
write_trace (const char *trace, struct slave *slave)
{
#if CAIRO_HAS_SCRIPT_SURFACE
+ cairo_script_context_t *ctx;
cairo_surface_t *script;
char *filename;
cairo_status_t status;
xasprintf (&filename, "%s-fail.trace", trace);
- script = cairo_script_surface_create (filename,
+ ctx = cairo_script_context_create (filename);
+ script = cairo_script_surface_create (ctx,
slave->width,
slave->height);
+ cairo_script_context_destroy (ctx);
free (filename);
status = cairo_meta_surface_replay (slave->image, script);