From c0df8e0ec3ba034e454d4a04c33b15a2d005a8ec Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 2 Nov 2025 08:54:55 +0200 Subject: [PATCH] close doc --- lib/templates/detect_fields.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/templates/detect_fields.rb b/lib/templates/detect_fields.rb index 20bb9e3f..d9a81180 100755 --- a/lib/templates/detect_fields.rb +++ b/lib/templates/detect_fields.rb @@ -87,7 +87,11 @@ module Templates yield [attachment&.uuid, page_number, fields] if block_given? fields + ensure + page.close end + ensure + doc.close end def extract_line_fields_from_page(page)