mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 01:10:26 +08:00
assigned nullptr to _database and _query_stmt upon flushing so that if flush gets called again, will not throw an exception
This commit is contained in:
parent
26ab30aba5
commit
ea1d0fd37b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user