Skip to content

Commit

Permalink
Safeguard possible repeated finalization of Cpp logger
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2247
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Mar 2, 2018
1 parent da270f8 commit b54a3c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SimulationRuntime/cpp/Core/Utils/extension/logger.cpp
Expand Up @@ -40,6 +40,7 @@ void Logger::finalize()
{
if (_instance != NULL)
delete _instance;
_instance = NULL;
}

void Logger::writeInternal(std::string msg, LogCategory cat, LogLevel lvl,
Expand Down

0 comments on commit b54a3c9

Please sign in to comment.