call fitz.close() after processing

This commit is contained in:
Johannes 'josch' Schauer 2020-10-31 08:36:03 +01:00
parent 94ebd8ed0a
commit 012075430a
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1
2 changed files with 2 additions and 0 deletions

View file

@ -2005,6 +2005,7 @@ option""",
plakativ = Plakativ(doc, pagenr)
plakativ.compute_layout(mode, size, mult, npages, pagesize, border, strategy)
plakativ.render(outfile, cover, guides, numbers, poster_border)
doc.close()
def gui(filename=None):

View file

@ -172,6 +172,7 @@ def test_cases(postersize, input_pagesize, output_pagesize, strategy, expected):
)
os.close(fd)
doc.save(infile, pretty=True, expand=255)
doc.close()
fd, outfile = tempfile.mkstemp(prefix="plakativ")
os.close(fd)