cipher: Fix leak and database being locked when opening a normal DB file

Fix a memory leak and make sure the database is being fully unlocked
when opening a normal, not-enrypted database file.
This commit is contained in:
Martin Kleusberg
2014-11-29 17:57:09 +01:00
parent 5991a144a1
commit 6d7b40265a

View File

@@ -105,6 +105,7 @@ bool DBBrowserDB::open(const QString& db)
return false;
#endif
} else {
sqlite3_finalize(vm);
done = true;
}
} while(!done);