Fix memory leak in auto test
Change-Id: Ie4412b8d8c67e9516225f6fe5b67afed91dcdad5 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
This commit is contained in:
parent
a9cd08c3f3
commit
bab398aba3
@ -1322,6 +1322,7 @@ void tst_QThreadPool::waitForDoneAfterTake()
|
||||
QRunnable *runnable = createTask(emptyFunct);
|
||||
manager.start(runnable);
|
||||
QVERIFY(manager.tryTake(runnable));
|
||||
delete runnable;
|
||||
}
|
||||
|
||||
// Add another runnable that will not be removed
|
||||
|
Loading…
Reference in New Issue
Block a user