tst_qthreadpool: fix memory leak

Task-number: QTBUG-22673
Change-Id: I2e554a2ad0119b5f9ce2d36e4720538af5ef6b82
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
David Faure 2013-11-04 14:59:41 +01:00 committed by The Qt Project
parent 4a8273a6fc
commit 1c046369e3

View File

@ -520,7 +520,8 @@ void tst_QThreadPool::setMaxThreadCountStartsAndStopsThreads()
QVERIFY(task->waitForStarted.tryAcquire(6, 1000));
task->waitToFinish.release(10);
// delete task;
threadPool.waitForDone();
delete task;
}
void tst_QThreadPool::reserveThread_data()