Explorar o código

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

robinbetts %!s(int64=7) %!d(string=hai) anos
pai
achega
4d5da3ef14
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();