Removed more memory leaks in game and editor panes and panels of client.

This commit is contained in:
LevelX2 2014-02-01 18:15:42 +01:00
parent 48a7e52701
commit dda33f86a4
12 changed files with 199 additions and 95 deletions

View file

@ -142,6 +142,9 @@ public class DraftGrid extends javax.swing.JPanel implements MouseListener {
cardEventSource.clearListeners();
}
private void hidePopup() {
Plugins.getInstance().getActionCallback().mouseExited(null, null);
}
/** This method is called from within the constructor to
* initialize the form.
@ -173,6 +176,7 @@ public class DraftGrid extends javax.swing.JPanel implements MouseListener {
Object obj = e.getSource();
if (obj instanceof MageCard) {
this.cardEventSource.doubleClick(((MageCard)obj).getOriginal(), "pick-a-card");
this.hidePopup();
}
}