fix(util): use sqlite3_close_v2 in Database

This commit is contained in:
Oleg Shparber
2026-05-10 04:01:14 +03:00
parent 9c0949acd3
commit a00e52373d
+4 -1
View File
@@ -133,7 +133,10 @@ QString Database::lastError() const
void Database::close()
{
sqlite3_close(m_db);
// Use the _v2 variant so that any prepared statements still alive at
// shutdown defer the actual deallocation instead of returning SQLITE_BUSY
// and leaking the connection.
sqlite3_close_v2(m_db);
m_db = nullptr;
}