making sure unused screen be disposed, and not breaking the app

This commit is contained in:
minjaesong
2019-01-31 13:29:40 +09:00
parent 90a7fcd4d0
commit 60db83eddb
6 changed files with 5 additions and 6 deletions

View File

@@ -478,6 +478,7 @@ public class AppLoader implements ApplicationListener {
if (this.screen != null) {
this.screen.hide();
this.screen.dispose();
}
this.screen = screen;
if (this.screen != null) {