diff --git a/src/logging.cpp b/src/logging.cpp index 7a0b84cc9..548d13a92 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -91,6 +91,7 @@ Logger& Logger::instance(const char* name) { if (instances.empty()) { std::atexit([] { + std::lock_guard LK(mu); for (const auto& [name, instance] : instances) { delete instance; }