//
// $Id$
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <simgear/debug/logstream.hxx>
#include <simgear/scene/sky/sky.hxx>
#include <simgear/environment/visual_enviro.hxx>
FGEnvironmentMgr::~FGEnvironmentMgr ()
{
delete _environment;
+ remove_subsystem("controller");
delete _controller;
delete fgClouds;
}