diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2010-03-01 13:27:20 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2010-03-01 13:28:23 (GMT) |
commit | a5e5f9925e7f945e6b95452662be6981b41adecb (patch) | |
tree | ee5f69e65e3c81eff4a33ee1ad25ddbf4b17fb49 /src/network/kernel | |
parent | 283b77b4e956540ac9370cd0e05f817b14a134d1 (diff) | |
download | Qt-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.cpp | 5 |
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() |