From 8a7166eef9d46ec15850cadb674edb2873cebecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Thu, 22 Jun 2017 16:14:00 +0200 Subject: Set the database pointer to nullptr after a close --- src/database/database.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/database/database.cpp b/src/database/database.cpp index ba69d39..246cdbc 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -176,6 +176,7 @@ std::vector Database::get_muc_logs(const std::string& owne void Database::close() { sqlite3_close_v2(Database::db); + Database::db = nullptr; } std::string Database::gen_uuid() -- cgit v1.2.3