Fixed #1875 Garbage collect SWF and its caches after closing it

This commit is contained in:
Jindra Petřík
2022-11-20 22:12:19 +01:00
parent 817b466242
commit 220f851ea9
4 changed files with 35 additions and 6 deletions
+2 -1
View File
@@ -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) {