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:
Lorn Potter 2013-10-24 13:12:54 +02:00 committed by The Qt Project
parent bfe005a888
commit ec07cdc91e

View File

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