From 4424f769af82000bc84b9d4c9f46c20834a817e6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Jan 2014 01:37:48 +0300 Subject: fix thread safe logging. --- src/logger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/logger.cpp b/src/logger.cpp index a4cc5096b..c430aefec 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -223,6 +223,7 @@ void Logger::flush() SDL_mutexP(mMutex); FOR_EACH (std::vector::const_iterator, it, mDelayedLog) mLogFile << *it; + mDelayedLog.clear(); SDL_mutexV(mMutex); } } -- cgit v1.2.3-70-g09d2