Fix memory leak in auto test
Change-Id: I2e8d8cc0f248122b06c7c8313d8effac887adaa8 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
This commit is contained in:
parent
993b049adf
commit
a9cd08c3f3
@ -1330,6 +1330,8 @@ void tst_QThread::quitLock()
|
|||||||
QCOMPARE(job->thread(), &thread);
|
QCOMPARE(job->thread(), &thread);
|
||||||
loop.exec();
|
loop.exec();
|
||||||
QVERIFY(exitThreadCalled);
|
QVERIFY(exitThreadCalled);
|
||||||
|
|
||||||
|
delete job;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_QThread::create()
|
void tst_QThread::create()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user