mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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();
|
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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue