CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <[EMAIL PROTECTED]> 05/06/03 00:06:59

Modified files:
        src            : game.cpp 

Log message:
        made threads get cleaned up after display is shut down

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game.cpp.diff?tr1=1.248&tr2=1.249&r1=text&r2=text

Patches:
Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.248 wesnoth/src/game.cpp:1.249
--- wesnoth/src/game.cpp:1.248  Thu Jun  2 23:26:37 2005
+++ wesnoth/src/game.cpp        Fri Jun  3 00:06:59 2005
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.248 2005/06/02 23:26:37 isaaccp Exp $ */
+/* $Id: game.cpp,v 1.249 2005/06/03 00:06:59 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -122,10 +122,13 @@
        const int argc_;
        int arg_;
        const char* const * const argv_;
+
+       //this should get destroyed *after* the video, since we want to clean 
up threads
+       //after the display disappears.
+       const threading::manager thread_manager;
 
        CVideo video_;
-
-       const threading::manager thread_manager;
+
        const font::manager font_manager_;
        const sound::manager sound_manager_;
        const preferences::manager prefs_manager_;


Reply via email to