On configuration removal, take it away from foundConfigurations
Prevents derefence of freed QNetworkConfigurationPrivate pointer in QConnmanEngine::getConfigurations(). original submitter: Jakub Adam <jakub.adam@jollamobile.com> Change-Id: Ib915c5a68aeb3196c6ac91c96338ebee9dad30b6 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
parent
bfe005a888
commit
ec07cdc91e
@ -495,6 +495,7 @@ void QConnmanEngine::removeConfiguration(const QString &id)
|
||||
serviceNetworks.removeOne(service);
|
||||
|
||||
QNetworkConfigurationPrivatePointer ptr = accessPointConfigurations.take(id);
|
||||
foundConfigurations.removeOne(ptr.data());
|
||||
locker.unlock();
|
||||
emit configurationRemoved(ptr);
|
||||
locker.relock();
|
||||
|
Loading…
Reference in New Issue
Block a user