Attempt to combat game memory leaks after game finishes.

- Make PLAY_LAND_SURROGATE a game field rather than static
- Remove games from cache more aggressively
- Remove targeting overlay from global view after game ends
This commit is contained in:
elcnesh
2015-04-02 14:35:42 +00:00
parent b7a47736bf
commit dc4559c577
10 changed files with 67 additions and 35 deletions

View File

@@ -813,6 +813,7 @@ public final class CMatchUI
@Override
public void afterGameEnd() {
Singletons.getView().getLpnDocument().remove(targetingOverlay.getPanel());
FThreads.invokeInEdtNowOrLater(new Runnable() {
@Override public void run() {
Singletons.getView().getNavigationBar().closeTab(screen);