|
From: Fredrik K. <sci...@us...> - 2010-08-27 15:50:29
|
Module: performous
Branch: master
Commit: 6c8ed6fe9d4dcfc4b07ac7d848597a8855a421c7
Author: Fredrik Klasson <fr...@li...>
Date: Fri Aug 27 17:50:04 2010 +0200
[ ] Tear down the logger at exit and prevent a race. This should fix the reported crashes at exit. (needs verififaction from someone that got hit by the race cond.)
---
game/main.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/game/main.cc b/game/main.cc
index 00cf98f..6af350f 100644
--- a/game/main.cc
+++ b/game/main.cc
@@ -338,6 +338,9 @@ int main(int argc, char** argv) try {
// Run the game init and main loop
mainLoop(songlist);
+
+ logger::teardown();
+
return EXIT_SUCCESS; // Do not remove. SDL_Main (which this function is called on some platforms) needs return statement.
} catch (std::exception& e) {
std::cerr << "FATAL ERROR: " << e.what() << std::endl;
|