remove the subsystem in the destructor that was added in the constructor.
This prevents nasty crashes on "environment" subsystem removal.
This commit is contained in:
parent
5bd2ef1edb
commit
e254d4e76d
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ FGEnvironmentMgr::~FGEnvironmentMgr ()
|
||||||
{
|
{
|
||||||
delete _environment;
|
delete _environment;
|
||||||
delete _controller;
|
delete _controller;
|
||||||
|
remove_subsystem("controller");
|
||||||
delete fgClouds;
|
delete fgClouds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue