From 73df7890923f377f19147466d9317fe1ec064b1d Mon Sep 17 00:00:00 2001 From: Shane Kearns Date: Thu, 7 Jul 2011 14:17:58 +0100 Subject: 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 --- src/network/kernel/qhostinfo.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/network') diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index 328145c704..94fd6928a5 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; } } } -- cgit v1.2.1