* Client memory - Some more changes to maximize objects for gc.

This commit is contained in:
LevelX2 2014-02-14 15:15:04 +01:00
parent b10ad8e663
commit f2cf060b21
4 changed files with 41 additions and 10 deletions

View file

@ -71,12 +71,13 @@ public class ShowCardsDialog extends MageDialog implements MouseListener {
}
public void cleanUp() {
for(Component comp: cardArea.getComponents()) {
if (comp instanceof CardPanel) {
((CardPanel) comp).cleanUp();
cardArea.remove(comp);
}
}
cardArea.cleanUp();
for (Component comp : cardArea.getComponents()) {
if (comp instanceof CardPanel) {
((CardPanel) comp).cleanUp();
cardArea.remove(comp);
}
}
}
public void loadCards(String name, SimpleCardsView showCards, BigCard bigCard, CardDimensions dimension, UUID gameId, boolean modal) {