From 6e98635d917aeb3b4479d9a3144a21d99d6b465b Mon Sep 17 00:00:00 2001 From: vididvidid Date: Thu, 2 Oct 2025 05:07:30 +0000 Subject: [PATCH] moved the do pdfa test after the closing of inpdf --- testpdfio.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testpdfio.c b/testpdfio.c index 045f6a0..fe8fefa 100644 --- a/testpdfio.c +++ b/testpdfio.c @@ -1326,11 +1326,12 @@ do_unit_tests(void) if (read_unit_file(temppdf, num_pages, first_image, false)) return (1); - // Do PDF/A tests... - if (do_pdfa_tests()) - goto fail; pdfioFileClose(inpdf); + + // Do PDF/A tests... + if (do_pdfa_tests()) + return (1); return (0);