aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.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 /src/narrative_window.c
parentf0b6caf6998fc4998b14e25ccc9318349ad552ad (diff)
Top frame is created by rendering pipeline, but owned by caller
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;
}