Fix memory leak
This commit is contained in:
parent
49a43f2370
commit
4e2d1446dd
@ -7,6 +7,7 @@ bool success = true;
|
|||||||
|
|
||||||
void runTest(QObject *test) {
|
void runTest(QObject *test) {
|
||||||
int retVal = QTest::qExec(test);
|
int retVal = QTest::qExec(test);
|
||||||
|
delete test;
|
||||||
success &= retVal == 0;
|
success &= retVal == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user