diff options
author | Jonas Wielicki <j.wielicki@sotecware.net> | 2017-11-29 08:03:23 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-12-02 20:08:50 +0100 |
commit | e1c7a6518a1aeaac1786c321aee35bd5e20acf6f (patch) | |
tree | a743e9e92579809c8e95395edf1304eefc09e796 /src/database | |
parent | 58f78f31e65e8628bb14722eb8b4b42a558cd0e0 (diff) | |
download | biboumi-e1c7a6518a1aeaac1786c321aee35bd5e20acf6f.tar.gz biboumi-e1c7a6518a1aeaac1786c321aee35bd5e20acf6f.tar.bz2 biboumi-e1c7a6518a1aeaac1786c321aee35bd5e20acf6f.tar.xz biboumi-e1c7a6518a1aeaac1786c321aee35bd5e20acf6f.zip |
Actually free the database on Database::close()
.release() returns the pointer and releases ownership *without*
destruction.
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/database.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp index 19e9988..f9a365d 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -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() |