Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java16
1 files changed, 3 insertions, 13 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java b/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
index 8c0b9463b..1e5589dc1 100644
--- a/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.xmpp/src/org/eclipse/ecf/provider/xmpp/XMPPContainer.java
@@ -211,19 +211,9 @@ public class XMPPContainer extends ClientSOContainer implements IPresenceService
* @see org.eclipse.ecf.provider.generic.ClientSOContainer#dispose()
*/
public void dispose() {
- if (presenceHelper != null) {
- presenceHelperID = null;
- presenceHelper = null;
- }
- if (chatRoomManager != null)
- chatRoomManager.dispose();
- chatRoomManager = null;
- if (accountManager != null)
- accountManager.dispose();
- accountManager = null;
- if (outgoingFileTransferContainerAdapter != null)
- outgoingFileTransferContainerAdapter.dispose();
- outgoingFileTransferContainerAdapter = null;
+ chatRoomManager.dispose();
+ accountManager.dispose();
+ outgoingFileTransferContainerAdapter.dispose();
super.dispose();
}

Back to the top