mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Memory leaks - TornamentPane can now be removed by gc.
This commit is contained in:
parent
f734d89de6
commit
ae555aea0e
2 changed files with 9 additions and 1 deletions
|
@ -55,7 +55,8 @@ public class TournamentPane extends MagePane {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void hideTournament() {
|
public void hideTournament() {
|
||||||
tournamentPanel.hideTournament();
|
tournamentPanel.cleanUp();
|
||||||
|
removeFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
public UUID getTournamentId() {
|
public UUID getTournamentId() {
|
||||||
|
|
|
@ -117,6 +117,13 @@ public class TournamentPanel extends javax.swing.JPanel {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void cleanUp() {
|
||||||
|
this.stopTasks();
|
||||||
|
if (this.chatPanel1 != null) {
|
||||||
|
this.chatPanel1.disconnect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void saveDividerLocations() {
|
private void saveDividerLocations() {
|
||||||
// save panel sizes and divider locations.
|
// save panel sizes and divider locations.
|
||||||
Rectangle rec = MageFrame.getDesktop().getBounds();
|
Rectangle rec = MageFrame.getDesktop().getBounds();
|
||||||
|
|
Loading…
Reference in a new issue