Actually free the database on Database::close()
.release() returns the pointer and releases ownership *without* destruction.
This commit is contained in:
@@ -242,7 +242,7 @@ std::vector<Database::RosterItem> Database::get_full_roster()
|
|||||||
|
|
||||||
void Database::close()
|
void Database::close()
|
||||||
{
|
{
|
||||||
Database::db.release();
|
Database::db = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Database::gen_uuid()
|
std::string Database::gen_uuid()
|
||||||
|
|||||||
Reference in New Issue
Block a user