mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 04:00:53 +00:00
Fixed #1875 Garbage collect SWF and its caches after closing it
This commit is contained in:
@@ -1618,7 +1618,7 @@ public class Main {
|
||||
View.checkAccess();
|
||||
|
||||
sourceInfos.remove(swf.sourceInfo);
|
||||
mainFrame.getPanel().close(swf);
|
||||
mainFrame.getPanel().close(swf);
|
||||
}
|
||||
|
||||
public static void reloadFile(SWFList swf) {
|
||||
@@ -1645,6 +1645,7 @@ public class Main {
|
||||
boolean closeResult = mainFrame.getPanel().closeAll(true);
|
||||
if (closeResult) {
|
||||
sourceInfos.clear();
|
||||
System.gc();
|
||||
}
|
||||
|
||||
if (filesChangedDialog != null) {
|
||||
|
||||
Reference in New Issue
Block a user