From 8c3bab5346e19ba7a99d7e0fe58340f4e091ba2a Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Tue, 7 Jul 2015 22:31:47 +0200 Subject: [PATCH] Cancel workers after each command line export --- .../decompiler/flash/console/CommandLineArgumentParser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java index 01824a944..f6e46376e 100644 --- a/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java +++ b/src/com/jpexs/decompiler/flash/console/CommandLineArgumentParser.java @@ -103,6 +103,7 @@ import com.jpexs.decompiler.flash.types.RECT; import com.jpexs.decompiler.flash.types.sound.SoundFormat; import com.jpexs.decompiler.flash.xfl.FLAVersion; import com.jpexs.decompiler.graph.CompilationException; +import com.jpexs.helpers.CancellableWorker; import com.jpexs.helpers.Helper; import com.jpexs.helpers.Path; import com.jpexs.helpers.streams.SeekableInputStream; @@ -1312,6 +1313,7 @@ public class CommandLineArgumentParser { } swf.clearAllCache(); + CancellableWorker.cancelBackgroundThreads(); } } catch (OutOfMemoryError | Exception ex) { System.err.print("FAIL: Exporting Failed on Exception - ");