mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix memory leak in test
This commit is contained in:
parent
3095e29507
commit
2d945bc215
@ -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()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user