From: Niki Roo Date: Wed, 8 Aug 2018 10:18:36 +0000 (+0200) Subject: TempFiles: root to NULL on close: early bug detect X-Git-Tag: fanfix-swing-0.0.1~21^2~194 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=c175bf6f922a807891d2616cf2f0bfe74dea1ffb;p=fanfix-swing.git TempFiles: root to NULL on close: early bug detect --- diff --git a/src/be/nikiroo/utils/TempFiles.java b/src/be/nikiroo/utils/TempFiles.java index a16e9e40..186bfb89 100644 --- a/src/be/nikiroo/utils/TempFiles.java +++ b/src/be/nikiroo/utils/TempFiles.java @@ -130,6 +130,7 @@ public class TempFiles implements Closeable { public synchronized void close() throws IOException { IOUtils.deltree(root); // NO exception here root.getParentFile().delete(); // only if empty + root = null; } @Override