From a265f94d096a3afad02f42533b0c0bb783ac69ea Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 28 Dec 2013 17:49:28 -0500 Subject: [PATCH] Delete the extracted libraries when Limelight terminates --- src/com/limelight/binding/LibraryHelper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/limelight/binding/LibraryHelper.java b/src/com/limelight/binding/LibraryHelper.java index bc3f31a..827b461 100644 --- a/src/com/limelight/binding/LibraryHelper.java +++ b/src/com/limelight/binding/LibraryHelper.java @@ -67,6 +67,9 @@ public class LibraryHelper { destination.delete(); destination.createNewFile(); + // schedule the temporary file to be deleted when the program exits + destination.deleteOnExit(); + //this is the janky java 6 way to copy a file FileOutputStream fos = null; try {