Commit d0d26b98 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Fix one more use-after-free

This should be the last of it.

GIT_SILENT
parent f45e9e69
......@@ -154,6 +154,7 @@ void MoveTest::testMoving()
auto loadJob = Archive::load(archivePath);
QVERIFY(loadJob);
loadJob->setAutoDelete(false);
TestHelper::startAndWaitForResult(loadJob);
auto archive = loadJob->archive();
......@@ -176,6 +177,7 @@ void MoveTest::testMoving()
QList<Archive::Entry*> resultedEntries = TestHelper::getEntryList(archive);
TestHelper::verifyMovedEntriesWithDestination(files, destination, oldEntries, resultedEntries);
loadJob->deleteLater();
archive->deleteLater();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment