Don't leak pairing handlers

This commit is contained in:
Aleix Pol 2017-01-25 01:16:07 +01:00
parent ea41d3786e
commit 5d088041c0

View file

@ -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();
}
}