diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2009-12-21 23:20:17 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-01-04 01:20:03 (GMT) |
commit | 2fa4daa2acd0af503f5802eff773f1fa2117a788 (patch) | |
tree | e8999f3cbf1a75e09893d4d95928b5cdc445dbc0 | |
parent | 56c7d0baf1b7611f17938cf0eb920ccdae53e7ed (diff) | |
download | Qt-2fa4daa2acd0af503f5802eff773f1fa2117a788.zip Qt-2fa4daa2acd0af503f5802eff773f1fa2117a788.tar.gz Qt-2fa4daa2acd0af503f5802eff773f1fa2117a788.tar.bz2 |
Fix memory leak in NLA engine.
-rw-r--r-- | src/plugins/bearer/nla/qnlaengine.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/bearer/nla/qnlaengine.cpp b/src/plugins/bearer/nla/qnlaengine.cpp index a9fc2ee..bf0d74f 100644 --- a/src/plugins/bearer/nla/qnlaengine.cpp +++ b/src/plugins/bearer/nla/qnlaengine.cpp @@ -576,15 +576,7 @@ QString QNlaEngine::getInterfaceFromId(const QString &id) bool QNlaEngine::hasIdentifier(const QString &id) { - if (configurationInterface.contains(id.toUInt())) - return true; - - foreach (QNetworkConfigurationPrivate *cpPriv, nlaThread->getConfigurations()) { - if (cpPriv->id == id) - return true; - } - - return false; + return configurationInterface.contains(id.toUInt()); } QString QNlaEngine::bearerName(const QString &id) |