mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
close streams that needed closing (fixes #1143)
This commit is contained in:
parent
d5ca4c12a1
commit
81404c8904
@ -96,6 +96,9 @@ public class SmaliMod {
|
|||||||
dexGen.setDexBuilder(dexBuilder);
|
dexGen.setDexBuilder(dexBuilder);
|
||||||
dexGen.smali_file();
|
dexGen.smali_file();
|
||||||
|
|
||||||
|
is.close();
|
||||||
|
reader.close();
|
||||||
|
|
||||||
return dexGen.getNumberOfSyntaxErrors() == 0;
|
return dexGen.getNumberOfSyntaxErrors() == 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,8 @@ public class SmaliBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inStream.close();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!SmaliMod.assembleSmaliFile(out.toString(),dexBuilder, false, false, inFile)) {
|
if (!SmaliMod.assembleSmaliFile(out.toString(),dexBuilder, false, false, inFile)) {
|
||||||
throw new AndrolibException("Could not smali file: " + fileName);
|
throw new AndrolibException("Could not smali file: " + fileName);
|
||||||
|
Loading…
Reference in New Issue
Block a user