Set the database pointer to nullptr after a close
This commit is contained in:
1 parent
4d55a120d8
commit
8a7166eef9
1 file changed
+1
@@ -176,6 +176,7 @@ std::vector<Database::MucLogLine> Database::get_muc_logs(const std::string& owne
|
||||
void Database::close()
|
||||
{
|
||||
sqlite3_close_v2(Database::db);
|
||||
Database::db = nullptr;
|
||||
}
|
||||
|
||||
std::string Database::gen_uuid()
|
||||
|
||||
Reference in new issue
Block a user