Merge "Close the GZIPOutputStream to release the deflater" into sc-dev
This commit is contained in:
@@ -448,7 +448,7 @@ public final class DropBoxManagerService extends SystemService {
|
||||
final GZIPOutputStream gzipOutputStream =
|
||||
new GZIPOutputStream(new FileOutputStream(fd));
|
||||
FileUtils.copy(in, gzipOutputStream);
|
||||
gzipOutputStream.finish();
|
||||
gzipOutputStream.close();
|
||||
} else {
|
||||
FileUtils.copy(in, new FileOutputStream(fd));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user