From c175bf6f922a807891d2616cf2f0bfe74dea1ffb Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 8 Aug 2018 12:18:36 +0200 Subject: [PATCH] TempFiles: root to NULL on close: early bug detect --- src/be/nikiroo/utils/TempFiles.java | 1 + 1 file changed, 1 insertion(+) 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 -- 2.27.0