Browse Source

ensure that temp file is cleaned up when using the c bindings

robinbetts 7 years ago
parent
commit
4d5da3ef14
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/lib/pdfconverter.cc

+ 1 - 0
src/lib/pdfconverter.cc

@@ -1044,6 +1044,7 @@ void PdfConverterPrivate::printDocument() {
 			fail();
 		}
 		outputData = i.readAll();
+		i.close();
 		tempOut.removeAll();
 	}
 	clearResources();