mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user