mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
Fix memory leak in MutliUserChat.removeConnectionCallback().
Fix memory leak by removing subject listener in MutliUserChat.removeConnectionCallback(). Fixes SMACK-782.
This commit is contained in:
parent
65b4f506dc
commit
44e4607259
1 changed files with 1 additions and 0 deletions
|
@ -2011,6 +2011,7 @@ public class MultiUserChat {
|
||||||
private void removeConnectionCallbacks() {
|
private void removeConnectionCallbacks() {
|
||||||
connection.removeSyncStanzaListener(messageListener);
|
connection.removeSyncStanzaListener(messageListener);
|
||||||
connection.removeSyncStanzaListener(presenceListener);
|
connection.removeSyncStanzaListener(presenceListener);
|
||||||
|
connection.removeSyncStanzaListener(subjectListener);
|
||||||
connection.removeSyncStanzaListener(declinesListener);
|
connection.removeSyncStanzaListener(declinesListener);
|
||||||
connection.removePacketInterceptor(presenceInterceptor);
|
connection.removePacketInterceptor(presenceInterceptor);
|
||||||
if (messageCollector != null) {
|
if (messageCollector != null) {
|
||||||
|
|
Loading…
Reference in a new issue