From 5d088041c0b264b5b3e3ce549d63306340a168b4 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 25 Jan 2017 01:16:07 +0100 Subject: [PATCH] Don't leak pairing handlers --- core/backends/lan/lanlinkprovider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/backends/lan/lanlinkprovider.cpp b/core/backends/lan/lanlinkprovider.cpp index c5d1024ba..67dc577c0 100644 --- a/core/backends/lan/lanlinkprovider.cpp +++ b/core/backends/lan/lanlinkprovider.cpp @@ -418,7 +418,7 @@ void LanLinkProvider::deviceLinkDestroyed(QObject* destroyedDeviceLink) if (linkIterator != mLinks.end()) { Q_ASSERT(linkIterator.value() == destroyedDeviceLink); mLinks.erase(linkIterator); - mPairingHandlers.remove(id); + mPairingHandlers.take(id)->deleteLater(); } }