summaryrefslogtreecommitdiffstats
path: root/src/network/kernel
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-03-01 13:27:20 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-03-01 13:28:23 (GMT)
commita5e5f9925e7f945e6b95452662be6981b41adecb (patch)
treeee5f69e65e3c81eff4a33ee1ad25ddbf4b17fb49 /src/network/kernel
parent283b77b4e956540ac9370cd0e05f817b14a134d1 (diff)
downloadQt-a5e5f9925e7f945e6b95452662be6981b41adecb.zip
Qt-a5e5f9925e7f945e6b95452662be6981b41adecb.tar.gz
Qt-a5e5f9925e7f945e6b95452662be6981b41adecb.tar.bz2
QHostInfo: Forgot to free some stuff on application exit.
Reviewed-by: TrustMe
Diffstat (limited to 'src/network/kernel')
-rw-r--r--src/network/kernel/qhostinfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp
index 9de499e..b23f6db 100644
--- a/src/network/kernel/qhostinfo.cpp
+++ b/src/network/kernel/qhostinfo.cpp
@@ -451,6 +451,11 @@ QHostInfoLookupManager::QHostInfoLookupManager() : mutex(QMutex::Recursive), was
QHostInfoLookupManager::~QHostInfoLookupManager()
{
wasDeleted = true;
+
+ // don't qDeleteAll currentLookups, the QThreadPool has ownership
+ qDeleteAll(postponedLookups);
+ qDeleteAll(scheduledLookups);
+ qDeleteAll(finishedLookups);
}
void QHostInfoLookupManager::work()