forked from External/mage
Removed majority of memory leaks from game / editor / dialog handling.
This commit is contained in:
parent
11df1dc059
commit
0a18a7bea6
24 changed files with 215 additions and 138 deletions
|
|
@ -38,8 +38,6 @@ import java.awt.KeyboardFocusManager;
|
|||
import java.util.UUID;
|
||||
import javax.swing.SwingUtilities;
|
||||
import mage.client.MagePane;
|
||||
import mage.client.dialog.MageDialog;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -47,8 +45,6 @@ import org.apache.log4j.Logger;
|
|||
*/
|
||||
public class GamePane extends MagePane {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(MageDialog.class);
|
||||
|
||||
/** Creates new form GamePane */
|
||||
public GamePane() {
|
||||
this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
|
||||
|
|
@ -70,9 +66,7 @@ public class GamePane extends MagePane {
|
|||
}
|
||||
|
||||
public void cleanUp() {
|
||||
gamePanel.cleanUp();
|
||||
this.getInputMap().clear();
|
||||
this.getActionMap().clear();
|
||||
gamePanel.cleanUp();
|
||||
}
|
||||
|
||||
public void hideGame() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue