mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix memory leak in test
This commit is contained in:
committed by
Janek Bevendorff
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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user