From 321afdd0e417c701fbf9797ccfc3fd59a86d4dc2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 16 Aug 2015 18:15:46 +0200 Subject: Top frame is created by rendering pipeline, but owned by caller --- src/narrative_window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/narrative_window.c') diff --git a/src/narrative_window.c b/src/narrative_window.c index 81b23c8..f8e68b0 100644 --- a/src/narrative_window.c +++ b/src/narrative_window.c @@ -231,12 +231,14 @@ static cairo_surface_t *render_thumbnail(int w, int h, void *bvp, void *vp) SCBlock *scblocks = bvp; cairo_surface_t *surf; SCBlock *stylesheets[2]; + struct frame *top; scblocks = sc_block_child(scblocks); stylesheets[0] = p->stylesheet; stylesheets[1] = NULL; surf = render_sc(scblocks, w, h, 1024.0, 768.0, stylesheets, NULL, - p->is, ISZ_THUMBNAIL, 0); + p->is, ISZ_THUMBNAIL, 0, &top); + frame_free(top); return surf; } -- cgit v1.2.3