Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 3a2f07212f36dd97b99abf7c7bc433c5 > files > 1

TnL-071111-13.fc14.src.rpm

diff -up TnL-source-071111/src/game.cc~ TnL-source-071111/src/game.cc
--- TnL-source-071111/src/game.cc~	2007-11-11 16:38:40.000000000 +0100
+++ TnL-source-071111/src/game.cc	2007-11-11 16:38:40.000000000 +0100
@@ -352,6 +352,10 @@ void Game::teardownSystem(Status & stat)
     ls_message("Exiting game.\n");
     
     stat.endJob();
+
+    /* ugly but necessary, because otherwise Ptr<> will call unref on us after
+       destruction in the case the constructor failed */
+    exit(1);
 }
 
 void Game::startupSimulation(Status & stat) {