]> git.mxchange.org Git - flightgear.git/commitdiff
Make sure the unbind method is called for all registered subsystems proir to deleting...
authorehofman <ehofman>
Mon, 19 Oct 2009 08:57:14 +0000 (08:57 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 19 Oct 2009 22:00:08 +0000 (00:00 +0200)
src/Main/globals.cxx

index 84cf9c932493ff48993bc418ef0eec9717bab43c..7e6553fa4b196ba2602e70bdc2ada320e5ef95c3 100644 (file)
@@ -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;