From: mfranz Date: Thu, 9 Feb 2006 17:21:58 +0000 (+0000) Subject: remove the subsystem in the destructor that was added in the constructor. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e254d4e76db32f2ef73a1082368378f20a6fd30f;p=flightgear.git remove the subsystem in the destructor that was added in the constructor. This prevents nasty crashes on "environment" subsystem removal. --- diff --git a/src/Environment/environment_mgr.cxx b/src/Environment/environment_mgr.cxx index 2275a4795..f09237b48 100644 --- a/src/Environment/environment_mgr.cxx +++ b/src/Environment/environment_mgr.cxx @@ -60,6 +60,7 @@ FGEnvironmentMgr::~FGEnvironmentMgr () { delete _environment; delete _controller; + remove_subsystem("controller"); delete fgClouds; }