Commit 23817eec by eguven Committed by Oliver Woodman

Release zip inflater when finished

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=210513776
parent d0161ad1
...@@ -121,8 +121,13 @@ public final class ProjectionDecoder { ...@@ -121,8 +121,13 @@ public final class ProjectionDecoder {
int encoding = input.readInt(); int encoding = input.readInt();
if (encoding == TYPE_DFL8) { if (encoding == TYPE_DFL8) {
ParsableByteArray output = new ParsableByteArray(); ParsableByteArray output = new ParsableByteArray();
if (!Util.inflate(input, output, new Inflater(true))) { Inflater inflater = new Inflater(true);
return null; try {
if (!Util.inflate(input, output, inflater)) {
return null;
}
} finally {
inflater.end();
} }
input = output; input = output;
} else if (encoding != TYPE_RAW) { } else if (encoding != TYPE_RAW) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment