Fix memory leak in MutliUserChat.removeConnectionCallback().

Fix memory leak by removing subject listener
in MutliUserChat.removeConnectionCallback().
Fixes SMACK-782.
This commit is contained in:
damencho 2017-11-06 17:24:22 -06:00 committed by Florian Schmaus
parent 65b4f506dc
commit 44e4607259
1 changed files with 1 additions and 0 deletions

View File

@ -2011,6 +2011,7 @@ public class MultiUserChat {
private void removeConnectionCallbacks() {
connection.removeSyncStanzaListener(messageListener);
connection.removeSyncStanzaListener(presenceListener);
connection.removeSyncStanzaListener(subjectListener);
connection.removeSyncStanzaListener(declinesListener);
connection.removePacketInterceptor(presenceInterceptor);
if (messageCollector != null) {