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-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=c175bf6f922a807891d2616cf2f0bfe74dea1ffb;p=fanfix-jexer.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 a16e9e4..186bfb8 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