瀏覽代碼

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

robinbetts 7 年之前
父節點
當前提交
4d5da3ef14
共有 1 個文件被更改,包括 1 次插入0 次删除
  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();