mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2024-12-27 05:48:20 +01:00
Fix early closing of input PDF.
This commit is contained in:
parent
e2b33a6cbb
commit
90ad1e694a
@ -1033,8 +1033,6 @@ do_unit_tests(void)
|
|||||||
if (read_unit_file("testpdfio-out2.pdf", num_pages, first_image, true))
|
if (read_unit_file("testpdfio-out2.pdf", num_pages, first_image, true))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
pdfioFileClose(inpdf);
|
|
||||||
|
|
||||||
// Create new encrypted PDF files...
|
// Create new encrypted PDF files...
|
||||||
fputs("pdfioFileCreate(\"testpdfio-rc4.pdf\", ...): ", stdout);
|
fputs("pdfioFileCreate(\"testpdfio-rc4.pdf\", ...): ", stdout);
|
||||||
if ((outpdf = pdfioFileCreate("testpdfio-rc4.pdf", NULL, NULL, NULL, (pdfio_error_cb_t)error_cb, &error)) != NULL)
|
if ((outpdf = pdfioFileCreate("testpdfio-rc4.pdf", NULL, NULL, NULL, (pdfio_error_cb_t)error_cb, &error)) != NULL)
|
||||||
@ -1109,6 +1107,8 @@ do_unit_tests(void)
|
|||||||
if (read_unit_file("testpdfio-aesp.pdf", num_pages, first_image, false))
|
if (read_unit_file("testpdfio-aesp.pdf", num_pages, first_image, false))
|
||||||
return (1);
|
return (1);
|
||||||
|
|
||||||
|
pdfioFileClose(inpdf);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
Loading…
Reference in New Issue
Block a user