diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-05-04 21:45:41 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-05-13 11:42:00 +0200 |
commit | ae9780583c18c949bf975131a24eb8b8361ddbf6 (patch) | |
tree | 86711cd73c0f6062ccb10db405d93939bc2246fb /source/pdf | |
parent | b557ece715c9324d4e3cde10bda94d6ae90311cc (diff) | |
download | mupdf-ae9780583c18c949bf975131a24eb8b8361ddbf6.tar.xz |
murun: Add document writer object.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 5154f818..ade277ce 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -3136,12 +3136,13 @@ pdf_writer_end_page(fz_context *ctx, fz_document_writer *wri_, fz_device *dev) fz_try(ctx) { - fz_drop_device(ctx, dev); + fz_close_device(ctx, dev); obj = pdf_add_page(ctx, wri->pdf, &wri->mediabox, 0, wri->resources, wri->contents); pdf_insert_page(ctx, wri->pdf, -1, obj); } fz_always(ctx) { + fz_drop_device(ctx, dev); pdf_drop_obj(ctx, obj); fz_drop_buffer(ctx, wri->contents); wri->contents = NULL; |