Commit 8a7166ee authored by louiz’'s avatar louiz’

Set the database pointer to nullptr after a close

parent 4d55a120
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment