mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +00:00
Release zip inflater when finished
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=210513776
This commit is contained in:
parent
d0161ad18b
commit
23817eecfd
1 changed files with 7 additions and 2 deletions
|
|
@ -121,8 +121,13 @@ public final class ProjectionDecoder {
|
|||
int encoding = input.readInt();
|
||||
if (encoding == TYPE_DFL8) {
|
||||
ParsableByteArray output = new ParsableByteArray();
|
||||
if (!Util.inflate(input, output, new Inflater(true))) {
|
||||
return null;
|
||||
Inflater inflater = new Inflater(true);
|
||||
try {
|
||||
if (!Util.inflate(input, output, inflater)) {
|
||||
return null;
|
||||
}
|
||||
} finally {
|
||||
inflater.end();
|
||||
}
|
||||
input = output;
|
||||
} else if (encoding != TYPE_RAW) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue