From afb0ada81f6fd0fe179ab00f048134d101f5f311 Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 19 Oct 2009 08:57:14 +0000 Subject: [PATCH] Make sure the unbind method is called for all registered subsystems proir to deleting the subsystem manager. --- src/Main/globals.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 84cf9c932..7e6553fa4 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -125,6 +125,7 @@ FGGlobals::~FGGlobals() // deleted subsystems. subsystem_mgr->get_group(SGSubsystemMgr::GENERAL)->remove_subsystem("input"); subsystem_mgr->get_group(SGSubsystemMgr::GENERAL)->remove_subsystem("gui"); + subsystem_mgr->unbind(); delete subsystem_mgr; delete event_mgr; delete time_params;