]> git.mxchange.org Git - flightgear.git/commitdiff
Tweak shutdown code, chasing intermittent segfaults on shutdown.
authorJames Turner <zakalawe@mac.com>
Tue, 26 Oct 2010 22:42:34 +0000 (23:42 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 26 Oct 2010 22:42:34 +0000 (23:42 +0100)
src/Main/globals.cxx

index 33f36ecc82501c3e6d49984b4d4b98d62f087970..db6eef28c1412a3f717483cce18e672ae2860c2e 100644 (file)
@@ -167,6 +167,7 @@ FGGlobals::~FGGlobals()
     // shut down all subsystems, make sure we take down the 
     // AIModels system first.
     SGSubsystem* ai = subsystem_mgr->remove("ai_model");
+    ai->unbind();
     delete ai;
     
     subsystem_mgr->unbind();