[core] Fix leak
This commit is contained in:
parent
0d08926eae
commit
2065b84d73
|
|
@ -135,8 +135,9 @@ public class LogcatService implements Runnable {
|
||||||
t.start();
|
t.start();
|
||||||
t.join();
|
t.join();
|
||||||
var propsLogPath = ConfigFileManager.getpropsLogPath();
|
var propsLogPath = ConfigFileManager.getpropsLogPath();
|
||||||
var writer = new BufferedWriter(new FileWriter(propsLogPath));
|
try (var writer = new BufferedWriter(new FileWriter(propsLogPath))) {
|
||||||
writer.append(sb);
|
writer.append(sb);
|
||||||
|
}
|
||||||
} catch (IOException | InterruptedException | NullPointerException e) {
|
} catch (IOException | InterruptedException | NullPointerException e) {
|
||||||
Log.e(TAG, "GetProp: " + Arrays.toString(e.getStackTrace()));
|
Log.e(TAG, "GetProp: " + Arrays.toString(e.getStackTrace()));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue