]> git.mxchange.org Git - flightgear.git/commitdiff
remove the subsystem in the destructor that was added in the constructor.
authormfranz <mfranz>
Thu, 9 Feb 2006 17:21:58 +0000 (17:21 +0000)
committermfranz <mfranz>
Thu, 9 Feb 2006 17:21:58 +0000 (17:21 +0000)
This prevents nasty crashes on "environment" subsystem removal.

src/Environment/environment_mgr.cxx

index 2275a47955d87732ead9fb8f8a5e8082332f286c..f09237b48eb7c5d1958d140f25a9993261fdf7ff 100644 (file)
@@ -60,6 +60,7 @@ FGEnvironmentMgr::~FGEnvironmentMgr ()
 {
   delete _environment;
   delete _controller;
+  remove_subsystem("controller");
   delete fgClouds;
 }