Commit e1c7a651 authored by Jonas Schäfer's avatar Jonas Schäfer Committed by louiz’

Actually free the database on Database::close()

.release() returns the pointer and releases ownership *without*
destruction.
parent 58f78f31
......@@ -242,7 +242,7 @@ std::vector<Database::RosterItem> Database::get_full_roster()
void Database::close()
{
Database::db.release();
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