From b54a3c9da41f8d384f1ff1c02e8edc3a39afeabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Franke?= Date: Fri, 2 Mar 2018 06:58:48 +0100 Subject: [PATCH] Safeguard possible repeated finalization of Cpp logger Belonging to [master]: - OpenModelica/OMCompiler#2247 --- SimulationRuntime/cpp/Core/Utils/extension/logger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/SimulationRuntime/cpp/Core/Utils/extension/logger.cpp b/SimulationRuntime/cpp/Core/Utils/extension/logger.cpp index 3ee0f98b6f..283f7a1800 100644 --- a/SimulationRuntime/cpp/Core/Utils/extension/logger.cpp +++ b/SimulationRuntime/cpp/Core/Utils/extension/logger.cpp @@ -40,6 +40,7 @@ void Logger::finalize() { if (_instance != NULL) delete _instance; + _instance = NULL; } void Logger::writeInternal(std::string msg, LogCategory cat, LogLevel lvl,