Reload problem fixed

This commit is contained in:
Honfika
2013-12-22 21:43:40 +01:00
parent f811ca2d27
commit 763321feae
2 changed files with 22 additions and 8 deletions

View File

@@ -328,7 +328,9 @@ public class Main {
public static boolean reloadSWFs() {
CancellableWorker.cancelBackgroundThreads();
mainFrame.closeAll();
if (mainFrame != null) {
mainFrame.closeAll();
}
if (Main.sourceInfos.isEmpty()) {
Cache.clearAll();
System.gc();