Don't leak pairing handlers
This commit is contained in:
parent
ea41d3786e
commit
5d088041c0
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue