File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Parse/src/main/java/com/parse Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,10 @@ public Void call() throws Exception {
5454 long totalSize = response .getTotalSize ();
5555 long downloadedSize = 0 ;
5656 InputStream responseStream = null ;
57+ FileOutputStream tempFileStream = null ;
5758 try {
5859 responseStream = response .getContent ();
59- FileOutputStream tempFileStream = ParseFileUtils .openOutputStream (tempFile );
60+ tempFileStream = ParseFileUtils .openOutputStream (tempFile );
6061
6162 int nRead ;
6263 byte [] data = new byte [32 << 10 ]; // 32KB
@@ -73,6 +74,7 @@ public Void call() throws Exception {
7374 return null ;
7475 } finally {
7576 ParseIOUtils .closeQuietly (responseStream );
77+ ParseIOUtils .closeQuietly (tempFileStream );
7678 }
7779 }
7880 }, ParseExecutors .io ());
You can’t perform that action at this time.
0 commit comments