From: ehofman Date: Mon, 19 Oct 2009 08:57:14 +0000 (+0000) Subject: Make sure the unbind method is called for all registered subsystems proir to deleting... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=afb0ada81f6fd0fe179ab00f048134d101f5f311;p=flightgear.git Make sure the unbind method is called for all registered subsystems proir to deleting the subsystem manager. --- 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;