diff options
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/pdfportfolio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/tools/pdfportfolio.c b/source/tools/pdfportfolio.c index 9f08cff1..056bb678 100644 --- a/source/tools/pdfportfolio.c +++ b/source/tools/pdfportfolio.c @@ -265,6 +265,7 @@ int pdfportfolio_main(int argc, char **argv) page_obj = pdf_add_page(ctx, doc, &mediabox, 0, resources, contents); pdf_insert_page(ctx, doc, -1, page_obj); pdf_drop_obj(ctx, page_obj); + pdf_drop_obj(ctx, resources); fz_drop_buffer(ctx, contents); } } |