It is actually importatnt that smInstance get cleared. The subsequent new Logger will check for it.
This commit is contained in:
parent
57585e4986
commit
3e9a2f2651
|
@ -559,6 +559,7 @@ void Logger::logPrint(bool hex, const char * const filepath, const int line, con
|
||||||
void logInit(const char *name, const Logger::Options &options) {
|
void logInit(const char *name, const Logger::Options &options) {
|
||||||
if (Logger::smInstance) {
|
if (Logger::smInstance) {
|
||||||
delete Logger::smInstance;
|
delete Logger::smInstance;
|
||||||
|
Logger::smInstance = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger::smInstance = new Logger();
|
Logger::smInstance = new Logger();
|
||||||
|
|
Loading…
Reference in New Issue