Fix memory leak in test

This commit is contained in:
Aaron D. Marasco 2020-06-01 10:13:48 -04:00 committed by Janek Bevendorff
parent 3095e29507
commit 2d945bc215

View File

@ -68,7 +68,7 @@ void TestOpVaultReader::testReadIntoDatabase()
QDir opVaultDir(m_opVaultPath);
OpVaultReader reader;
auto db = reader.readDatabase(opVaultDir, "a");
QScopedPointer<Database> db(reader.readDatabase(opVaultDir, "a"));
QVERIFY(db);
QVERIFY2(!reader.hasError(), qPrintable(reader.errorString()));