diff --git a/include/spdlog/sinks/sqlite_sink.h b/include/spdlog/sinks/sqlite_sink.h index 81019a71..e4b1de2f 100644 --- a/include/spdlog/sinks/sqlite_sink.h +++ b/include/spdlog/sinks/sqlite_sink.h @@ -32,6 +32,9 @@ namespace spdlog sqlite3_close(_database); sqlite3_finalize(_query_stmt); + + _database = nullptr; + _query_stmt = nullptr; } void bind_to_statement(const details::log_msg& msg) const