mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-15 18:38:12 +00:00
Issue #248 Freeing memory before loading new file
This commit is contained in:
@@ -252,6 +252,11 @@ public class Main {
|
||||
public static boolean openFile(String swfFile) {
|
||||
if (mainFrame != null) {
|
||||
mainFrame.setVisible(false);
|
||||
Helper.emptyObject(mainFrame);
|
||||
swf = null;
|
||||
mainFrame = null;
|
||||
Cache.clearAll();
|
||||
System.gc();
|
||||
}
|
||||
Main.file = swfFile;
|
||||
if (Main.loadingDialog == null) {
|
||||
|
||||
Reference in New Issue
Block a user