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:
parent
4a8273a6fc
commit
1c046369e3
@ -520,7 +520,8 @@ void tst_QThreadPool::setMaxThreadCountStartsAndStopsThreads()
|
|||||||
QVERIFY(task->waitForStarted.tryAcquire(6, 1000));
|
QVERIFY(task->waitForStarted.tryAcquire(6, 1000));
|
||||||
|
|
||||||
task->waitToFinish.release(10);
|
task->waitToFinish.release(10);
|
||||||
// delete task;
|
threadPool.waitForDone();
|
||||||
|
delete task;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_QThreadPool::reserveThread_data()
|
void tst_QThreadPool::reserveThread_data()
|
||||||
|
Loading…
Reference in New Issue
Block a user