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:
PedroRod 2016-03-20 23:13:28 -04:00
parent 26ab30aba5
commit ea1d0fd37b

View File

@ -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