Smack/smack-extensions/src/main/java/org/jivesoftware/smackx/disco
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
..
packet [disco] Add DisocverInfo.nullSafeContainsFuture(DiscoverInfo, CharSequence) 2021-09-27 13:55:52 +02:00
provider Rename AbstractIqBuilder subclasses to their designated names 2019-10-29 19:34:18 +01:00
AbstractNodeInformationProvider.java disco: allow multiple data forms for extended discovery information 2020-04-18 19:04:21 +02:00
DiscoInfoLookupShortcutMechanism.java disco: avoid boxing to Integer when not necessary 2020-03-13 16:41:27 +01:00
EntityCapabilitiesChangedListener.java [disco] Move logic that was previously in EntityCapsManager in SDM 2020-05-18 09:15:15 +02:00
Feature.java Refactor PEP to use PubSub API. 2015-08-17 12:45:23 +02:00
NodeInformationProvider.java disco: allow multiple data forms for extended discovery information 2020-04-18 19:04:21 +02:00
ServiceDiscoveryManager.java [disco] Fix memory leak in ServiceDiscoveryManager 2022-05-26 15:39:41 +02:00
package-info.java Add missing package-info descriptions. 2018-02-21 16:47:11 +01:00