From 3e9a2f265117adda7d9be0646c14e5570d47782f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Sat, 27 Feb 2021 12:28:01 -0500 Subject: [PATCH] It is actually importatnt that smInstance get cleared. The subsequent new Logger will check for it. --- src/zm_logger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zm_logger.cpp b/src/zm_logger.cpp index 16f66835c..303500e20 100644 --- a/src/zm_logger.cpp +++ b/src/zm_logger.cpp @@ -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) { if (Logger::smInstance) { delete Logger::smInstance; + Logger::smInstance = nullptr; } Logger::smInstance = new Logger();