Memory work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9261 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-10-02 20:20:10 +00:00
committed by derek
parent c3c056d8ba
commit 4eac4d1ed6
3 changed files with 71 additions and 62 deletions

View File

@ -246,7 +246,7 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
// Add Key Listener to Send Field
chatEditorKeyListener = new KeyAdapter() {
public void keyPressed(KeyEvent e) {
checkForEnter(e);
checkForEnter(e);
}
};
@ -605,6 +605,7 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
getTranscriptWindow().removeMouseListener(transcriptWindowMouseListener);
getChatInputEditor().removeKeyListener(chatEditorKeyListener);
textScroller.getViewport().remove(transcriptWindow);
// Remove Connection Listener
SparkManager.getConnection().removeConnectionListener(this);