Skip to content
Snippets Groups Projects
Commit 32aac477 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Correctly close the gzip stream"

parents 2a7224a6 bc89f5d3
No related branches found
No related tags found
No related merge requests found
......@@ -196,8 +196,8 @@ public class BinaryDictionaryFileDumper {
} finally {
// Ignore exceptions while closing files.
try {
// afd.close() will close inputStream, we should not call inputStream.close().
if (null != afd) afd.close();
// inputStream.close() will close afd, we should not call afd.close().
if (null != inputStream) inputStream.close();
} catch (Exception e) {
Log.e(TAG, "Exception while closing a cross-process file descriptor : " + e);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment