Smack/smack-extensions/src
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
..
integration-test/java/org/jivesoftware/smackx s/occured/occurred/ 2019-10-30 12:02:36 +01:00
main [disco] Fix memory leak in ServiceDiscoveryManager 2022-05-26 15:39:41 +02:00
test [jingle] Improve Jingle <reason/> support 2022-02-02 12:10:53 +01:00
testFixtures/java/org/jivesoftware/util test: remove InitExtensions 2020-04-12 09:34:08 +02:00