summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2011-02-18 15:48:32 (GMT)
committermread <qt-info@nokia.com>2011-03-09 12:48:18 (GMT)
commitb6c60b0c9778f51af8c80f853d840ba25910c6f4 (patch)
tree58f07e8b81b90198ef21fb06c85c2cf85a46dbf3
parent830a08f6612346f90a321fa32de10e1e4a79d94f (diff)
downloadQt-b6c60b0c9778f51af8c80f853d840ba25910c6f4.zip
Qt-b6c60b0c9778f51af8c80f853d840ba25910c6f4.tar.gz
Qt-b6c60b0c9778f51af8c80f853d840ba25910c6f4.tar.bz2
removed some memory leaks from tst_qthread
This now deletes nativeThread objects Task-number: QTBUG-13990 Reviewed-by: Shane Kearns
-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 ee498cc..38a0525 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);