Selaa lähdekoodia

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

robinbetts 7 vuotta sitten
vanhempi
commit
4d5da3ef14
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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();