aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c4
1 files changed, 3 insertions, 1 deletions
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;
}