diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-07-07 13:17:58 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-07-07 13:20:55 (GMT) |
commit | 73df7890923f377f19147466d9317fe1ec064b1d (patch) | |
tree | b21c3f0f2ae19207f5f31099064475d00bd12cdf /src/network/kernel | |
parent | 99aef9769379a74accce481f6290a30bf8024216 (diff) | |
download | Qt-73df7890923f377f19147466d9317fe1ec064b1d.zip Qt-73df7890923f377f19147466d9317fe1ec064b1d.tar.gz Qt-73df7890923f377f19147466d9317fe1ec064b1d.tar.bz2 |
Fix memory leak in QHostInfo
QHostInfo was leaking in the code path where it removes duplicate
name lookups after one has completed.
Task-number: QT-5121
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network/kernel')
-rw-r--r-- | src/network/kernel/qhostinfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index 328145c..94fd692 100644 --- a/src/network/kernel/qhostinfo.cpp +++ b/src/network/kernel/qhostinfo.cpp @@ -481,6 +481,7 @@ void QHostInfoRunnable::run() iterator.remove(); hostInfo.setLookupId(postponed->id); postponed->resultEmitter.emitResultsReady(hostInfo); + delete postponed; } } } |