From: James Turner Date: Tue, 26 Oct 2010 22:42:34 +0000 (+0100) Subject: Tweak shutdown code, chasing intermittent segfaults on shutdown. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c96206aafd6c9f6e7d3d83b2507e9df5eda3fb55;p=flightgear.git Tweak shutdown code, chasing intermittent segfaults on shutdown. --- diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 33f36ecc8..db6eef28c 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -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();