summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-12-15 08:25:35 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-12-15 08:25:35 (GMT)
commitaf5984ef163894b6eb43894aa4075e947642bb6d (patch)
tree8240e02b281583c30ae7195160d82bdb4aa4c6a6 /src
parentc01231089fe396689310f56529d06ab4136296fa (diff)
parent27de60f2f6047cb3f698825af96e569fde04ef06 (diff)
downloadQt-af5984ef163894b6eb43894aa4075e947642bb6d.zip
Qt-af5984ef163894b6eb43894aa4075e947642bb6d.tar.gz
Qt-af5984ef163894b6eb43894aa4075e947642bb6d.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Add extra type of embedded license. Fix possible null pointer dereference.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/bearer/networkmanager/qnetworkmanagerengine.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/bearer/networkmanager/qnetworkmanagerengine.cpp b/src/plugins/bearer/networkmanager/qnetworkmanagerengine.cpp
index 554f9b7..f93b605 100644
--- a/src/plugins/bearer/networkmanager/qnetworkmanagerengine.cpp
+++ b/src/plugins/bearer/networkmanager/qnetworkmanagerengine.cpp
@@ -743,9 +743,11 @@ QNetworkConfigurationPrivate *QNetworkManagerEngine::parseConnection(const QStri
QNetworkConfigurationPrivatePointer ptr =
accessPointConfigurations.take(accessPointId);
- mutex.unlock();
- emit configurationRemoved(ptr);
- mutex.lock();
+ if (ptr) {
+ mutex.unlock();
+ emit configurationRemoved(ptr);
+ mutex.lock();
+ }
}
break;
}