summaryrefslogtreecommitdiffstats
path: root/tests/auto/qthread
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2011-02-18 15:48:32 +0000
committermread <qt-info@nokia.com>2011-03-09 12:48:18 +0000
commitb6c60b0c9778f51af8c80f853d840ba25910c6f4 (patch)
tree58f07e8b81b90198ef21fb06c85c2cf85a46dbf3 /tests/auto/qthread
parent830a08f6612346f90a321fa32de10e1e4a79d94f (diff)
removed some memory leaks from tst_qthread
This now deletes nativeThread objects Task-number: QTBUG-13990 Reviewed-by: Shane Kearns
Diffstat (limited to 'tests/auto/qthread')
-rw-r--r--tests/auto/qthread/tst_qthread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qthread/tst_qthread.cpp b/tests/auto/qthread/tst_qthread.cpp
index ee498cc56b..38a05254a3 100644
--- a/tests/auto/qthread/tst_qthread.cpp
+++ b/tests/auto/qthread/tst_qthread.cpp
@@ -941,6 +941,7 @@ void tst_QThread::adoptMultipleThreads()
for (int i = 0; i < numThreads; ++i) {
nativeThreads.at(i)->stop();
nativeThreads.at(i)->join();
+ delete nativeThreads.at(i);
}
QTestEventLoop::instance().enterLoop(5);
@@ -985,6 +986,7 @@ void tst_QThread::adoptMultipleThreadsOverlap()
for (int i = 0; i < numThreads; ++i) {
nativeThreads.at(i)->stop();
nativeThreads.at(i)->join();
+ delete nativeThreads.at(i);
}
QTestEventLoop::instance().enterLoop(5);