~singpolyma/biboumi

e1c7a6518a1aeaac1786c321aee35bd5e20acf6f — Jonas Wielicki 6 years ago 58f78f3
Actually free the database on Database::close()

.release() returns the pointer and releases ownership *without*
destruction.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/database/database.cpp
M src/database/database.cpp => src/database/database.cpp +1 -1
@@ 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()