From 15746e6a9e2939c28fd0eb5cb7abe31be62b0ccd Mon Sep 17 00:00:00 2001 From: "weiqiang.hu" Date: Fri, 15 Mar 2019 18:27:51 +0800 Subject: [PATCH] fix:close ParcelFileDescriptor --- .../liulishuo/okdownload/core/file/DownloadUriOutputStream.java | 1 + 1 file changed, 1 insertion(+) diff --git a/okdownload/src/main/java/com/liulishuo/okdownload/core/file/DownloadUriOutputStream.java b/okdownload/src/main/java/com/liulishuo/okdownload/core/file/DownloadUriOutputStream.java index 338e9247..7755a458 100644 --- a/okdownload/src/main/java/com/liulishuo/okdownload/core/file/DownloadUriOutputStream.java +++ b/okdownload/src/main/java/com/liulishuo/okdownload/core/file/DownloadUriOutputStream.java @@ -69,6 +69,7 @@ public void write(byte[] b, int off, int len) throws IOException { public void close() throws IOException { out.close(); fos.close(); + pdf.close(); } @Override