src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
/**
     * Runs clean-up for associated resources which need explicit disposal (e.g.
     * listeners keeping this instance alive because they were added to the
     * model which operationally outlives this instance).
     */
Runs clean-up for associated resources which need explicit disposal .
Runs clean - up for associated resources which need explicit disposal .
public void dispose()
    {
        writeMessagePanel.dispose();
        chatSession.dispose();
        conversationPanel.dispose();
        if (chatSession instanceof ConferenceChatSession)
        {
            if(chatConferencesDialog != null)
                chatConferencesDialog.dispose();
            ConferenceChatSession confSession
                            = (ConferenceChatSession) chatSession;
            confSession.removeLocalUserRoleListener(this);
            confSession.removeMemberRoleListener(this);
            ((ChatRoomWrapper) chatSession.getDescriptor())
                .getChatRoom().removeMemberPropertyChangeListener(this);
        }
        if(subjectPanel != null)
            subjectPanel.dispose();
        if(this.chatContactListPanel != null)
            this.chatContactListPanel.dispose();
    }
public void dispose ( ) { writeMessagePanel . dispose ( ) ; chatSession . dispose ( ) ; conversationPanel . dispose ( ) ; if ( chatSession instanceof ConferenceChatSession ) { if ( chatConferencesDialog != null ) chatConferencesDialog . dispose ( ) ; ConferenceChatSession confSession = ( ConferenceChatSession ) chatSession ; confSession . removeLocalUserRoleListener ( this ) ; confSession . removeMemberRoleListener ( this ) ; ( ( ChatRoomWrapper ) chatSession . getDescriptor ( ) ) . getChatRoom ( ) . removeMemberPropertyChangeListener ( this ) ; } if ( subjectPanel != null ) subjectPanel . dispose ( ) ; if ( this . chatContactListPanel != null ) this . chatContactListPanel . dispose ( ) ; }
Runs clean-up for associated resources which need explicit disposal (e.g.
Runs clean - up for associated resources which need explicit disposal ( e . g .