From c96206aafd6c9f6e7d3d83b2507e9df5eda3fb55 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 26 Oct 2010 23:42:34 +0100 Subject: [PATCH] Tweak shutdown code, chasing intermittent segfaults on shutdown. --- src/Main/globals.cxx | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.5