aboutsummaryrefslogtreecommitdiff
path: root/tests/render_test_sc1.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-08-16 18:15:46 +0200
committerThomas White <taw@bitwiz.org.uk>2015-08-16 18:15:46 +0200
commit321afdd0e417c701fbf9797ccfc3fd59a86d4dc2 (patch)
tree8dc56f70c27d6e81e40f7d9585810e9f8e58906f /tests/render_test_sc1.c
parentf0b6caf6998fc4998b14e25ccc9318349ad552ad (diff)
Top frame is created by rendering pipeline, but owned by caller
Diffstat (limited to 'tests/render_test_sc1.c')
-rw-r--r--tests/render_test_sc1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/render_test_sc1.c b/tests/render_test_sc1.c
index 46a9c44..8a6ff8b 100644
--- a/tests/render_test_sc1.c
+++ b/tests/render_test_sc1.c
@@ -50,16 +50,18 @@ static gboolean draw_sig(GtkWidget *da, cairo_t *cr, gpointer data)
gint w, h;
cairo_surface_t *surface;
SCBlock *scblocks = data;
+ struct frame *top;
w = gtk_widget_get_allocated_width(da);
h = gtk_widget_get_allocated_height(da);
surface = render_sc(scblocks, w, h, w, h, NULL, NULL, NULL,
- ISZ_EDITOR, 1);
+ ISZ_EDITOR, 1, &top);
cairo_rectangle(cr, 0.0, 0.0, w, h);
cairo_set_source_surface(cr, surface, 0.0, 0.0);
cairo_fill(cr);
cairo_surface_destroy(surface);
+ frame_free(top);
return FALSE;
}