fix memory leak (#1865)

This commit is contained in:
Glavo 2022-11-24 12:53:16 +08:00 committed by GitHub
parent 8c9c8fd28f
commit 3d88bc35bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -756,6 +756,7 @@ public final class LauncherHelper {
Controllers.getStage().close();
Controllers.shutdown();
Schedulers.shutdown();
System.gc();
}
});
break;

View File

@ -315,6 +315,8 @@ public final class Controllers {
rootPage = null;
versionPage = null;
gameListPage = null;
downloadPage = null;
accountListPage = null;
settingsPage = null;
decorator = null;
stage = null;