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
|
|
@ -90,9 +90,16 @@ public class DraftPanel extends javax.swing.JPanel {
|
|||
);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
public void cleanUp() {
|
||||
draftPicks.clear();
|
||||
draftBooster.clear();
|
||||
|
||||
if (countdown != null) {
|
||||
countdown.stop();
|
||||
for (ActionListener al : countdown.getActionListeners()) {
|
||||
countdown.removeActionListener(al);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void showDraft(UUID draftId) {
|
||||
|
|
@ -162,7 +169,6 @@ public class DraftPanel extends javax.swing.JPanel {
|
|||
}
|
||||
|
||||
public void hideDraft() {
|
||||
this.clear();
|
||||
Component c = this.getParent();
|
||||
while (c != null && !(c instanceof DraftPane)) {
|
||||
c = c.getParent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue