1
0
Fork 0

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:
mfranz 2006-02-09 17:21:58 +00:00
parent 5bd2ef1edb
commit e254d4e76d

View file

@ -60,6 +60,7 @@ FGEnvironmentMgr::~FGEnvironmentMgr ()
{
delete _environment;
delete _controller;
remove_subsystem("controller");
delete fgClouds;
}