Smack/smack-extensions/src/main/java/org/jivesoftware/smackx
Florian Schmaus 5b6dd8e3f7 [disco] Fix memory leak in ServiceDiscoveryManager
The lambda we schedule in 25ms captures a strong reference to the
XMPPConnection. However the lambda is part of the scheduled action,
which we save in the renewEntityCapsScheduledAction field. This causes
a memory leak, since the ServiceDiscoveryManager now holds a strong
reference to its XMPPConnection.

Fix this by obtaining the strong reference to the XMPPConnection, if
one still exists, within the lambda.

Fixes SMACK-926.

Reported-by: Damian Minkov <damencho@jitsi.org>
2022-05-26 15:39:41 +02:00
..
address [address] Fix NPE in MultipleRecipientManager 2021-06-03 19:10:07 +02:00
admin Re-work data form API 2020-05-13 20:14:41 +02:00
amp s/occured/occurred/ 2019-10-30 12:02:36 +01:00
attention Make use of XmlStringBuilder in AttentionElement 2020-01-06 18:41:30 +01:00
blocking [core] Deprecate AbstractConnectionListener 2020-05-13 22:14:43 +02:00
bob [extensions] Use StanzaView as parameter type in BoBDataExtension.from() 2021-01-25 14:29:21 +01:00
bookmarks Enable werror for javadoc and fix javadoc issues 2019-08-30 12:08:30 +02:00
bytestreams Merge pull request #501 from Flowdalic/fix-redundant-namespaces 2021-10-19 14:29:18 +02:00
caps [caps] Use the raw character data of form fields when caclulating the hash 2021-07-19 15:38:42 +02:00
chatstates Introduce XMPPConnection.add(Message|Presence)Interceptor 2019-10-25 21:41:55 +02:00
commands Do not call XmlPullParser.getName() when the event is unknown 2021-07-06 13:37:57 +02:00
delay Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
disco [disco] Fix memory leak in ServiceDiscoveryManager 2022-05-26 15:39:41 +02:00
filetransfer [filetransfer] Pre-register 'stream-method' form field 2021-03-14 19:34:28 +01:00
formtypes [formtypes] Add FormFieldRegistry.register(String, FormField.Type, String...) 2021-12-15 20:17:23 +01:00
forward Make Forwarded a generic type 2020-09-23 17:48:04 +02:00
geoloc geoloc: make GeoLocation implement hashCode() and equals(Object) 2020-04-13 20:40:10 +02:00
iqlast s/occured/occurred/ 2019-10-30 12:02:36 +01:00
iqprivate s/occured/occurred/ 2019-10-30 12:02:36 +01:00
iqregister Add XMPP.(get|has)Feature(Class|QName) and deprecate (String, String) 2020-07-23 14:32:14 +02:00
iqversion Add org.jivesoftware.smack.Smack with getVersion() and ensureInitialized() 2020-11-09 08:46:57 +01:00
jingle [jingle] Add element and text to JingleReason's XML 2022-02-18 21:29:32 +01:00
jiveproperties Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
last_interaction Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
mediaelement [ibb] Use UInt16 for 'seq' and fix its handling 2020-12-05 23:04:17 +01:00
message_correct Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
mood Do not call XmlPullParser.getName() when the event is unknown 2021-07-06 13:37:57 +02:00
muc [muc] Fix Presence interceptors 2022-05-22 10:51:45 +02:00
nick Add more QNAME fields to extension element classes 2021-04-18 17:23:34 +02:00
offline [offline] Add OfflineMessageInfo.QNAME field 2021-04-18 17:17:48 +02:00
pep [extensions] Deprecate old-style PepManager PEP listeners 2020-05-25 20:32:47 +02:00
ping Bump Error Prone version to 2.3.4 and fix new bug patterns 2020-05-24 21:10:01 +02:00
privacy [core] Deprecate AbstractConnectionListener 2020-05-13 22:14:43 +02:00
pubsub [pubsub] Allow for character data before <item/>'s payload 2021-12-13 21:50:10 +01:00
receipts Bump Error Prone version to 2.3.4 and fix new bug patterns 2020-05-24 21:10:01 +02:00
rsm Rename Stanza.getExtension(String, String) to getExtensionElement() 2020-04-12 12:09:04 +02:00
search Re-work data form API 2020-05-13 20:14:41 +02:00
sharedgroups Enable werror for javadoc and fix javadoc issues 2019-08-30 12:08:30 +02:00
shim Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
si Do not call XmlPullParser.getName() when the event is unknown 2021-07-06 13:37:57 +02:00
softwareinfo [softwareinfo] Register urn:xmpp:dataforms:softwareinfo's field types 2021-12-15 20:17:23 +01:00
time Javadoc changes for Java 11 compatibility 2019-07-19 23:05:46 +02:00
usertune [checkstyle] Tighten JavadocMethod checkstyle rule 2020-05-23 22:43:29 +02:00
vcardtemp Introduce StanzaBuilder 2019-10-25 21:41:55 +02:00
xdata [xdata] Only emit warning about unregistered fields once per field 2022-03-06 21:44:33 +01:00
xdatalayout Rework XML Element hierarchy and XmlStringBuilder 2019-09-07 18:17:08 +02:00
xdatavalidation [ibb] Use UInt16 for 'seq' and fix its handling 2020-12-05 23:04:17 +01:00
xhtmlim Do not call XmlPullParser.getName() when the event is unknown 2021-07-06 13:37:57 +02:00
package-info.java Add missing package-info descriptions. 2018-02-21 16:47:11 +01:00