Skip to content

Commit 5ad4422

Browse files
committed
Merge remote-tracking branch 'arduino/master' into platforms-b
2 parents 1058d09 + f520bb5 commit 5ad4422

File tree

4 files changed

+169
-90
lines changed

4 files changed

+169
-90
lines changed

app/src/processing/app/EditorConsole.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,19 @@ public EditorConsole(Editor editor) {
133133
// The files and folders are not deleted on exit because they may be
134134
// needed for debugging or bug reporting.
135135
tempFolder = Base.createTempFolder("console");
136+
tempFolder.deleteOnExit();
136137
try {
137138
String outFileName = Preferences.get("console.output.file");
138139
if (outFileName != null) {
139140
outFile = new File(tempFolder, outFileName);
141+
outFile.deleteOnExit();
140142
stdoutFile = new FileOutputStream(outFile);
141143
}
142144

143145
String errFileName = Preferences.get("console.error.file");
144146
if (errFileName != null) {
145147
errFile = new File(tempFolder, errFileName);
148+
errFile.deleteOnExit();
146149
stderrFile = new FileOutputStream(errFile);
147150
}
148151
} catch (IOException e) {

0 commit comments

Comments
 (0)