summaryrefslogtreecommitdiffstats
path: root/src/network/bearer
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-09-13 02:08:22 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-09-13 03:48:41 (GMT)
commitb7d98cb89889032d7fc7b7e16b5183305dfb714b (patch)
treea9aef5de2aed5fb5b5c6887d9bc7d4d0b5168b0e /src/network/bearer
parentd9f5115eb7f7ba78db245ff9e66ae638317f5b70 (diff)
downloadQt-b7d98cb89889032d7fc7b7e16b5183305dfb714b.zip
Qt-b7d98cb89889032d7fc7b7e16b5183305dfb714b.tar.gz
Qt-b7d98cb89889032d7fc7b7e16b5183305dfb714b.tar.bz2
Fix memory leaks and valgrind errors.
Diffstat (limited to 'src/network/bearer')
-rw-r--r--src/network/bearer/qbearerengine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/bearer/qbearerengine.cpp b/src/network/bearer/qbearerengine.cpp
index 2f8624a..b074924 100644
--- a/src/network/bearer/qbearerengine.cpp
+++ b/src/network/bearer/qbearerengine.cpp
@@ -58,18 +58,21 @@ QBearerEngine::~QBearerEngine()
it.value()->isValid = false;
it.value()->id.clear();
}
+ snapConfigurations.clear();
for (it = accessPointConfigurations.begin(), end = accessPointConfigurations.end();
it != end; ++it) {
it.value()->isValid = false;
it.value()->id.clear();
}
+ accessPointConfigurations.clear();
for (it = userChoiceConfigurations.begin(), end = userChoiceConfigurations.end();
it != end; ++it) {
it.value()->isValid = false;
it.value()->id.clear();
}
+ userChoiceConfigurations.clear();
}
bool QBearerEngine::requiresPolling() const