1
0
Fork 0

Release property refs on shutdown.

This commit is contained in:
James Turner 2013-11-16 11:56:42 +00:00
parent fecb475145
commit 780393e2fe

View file

@ -39,6 +39,7 @@
#include <simgear/misc/ResourceManager.hxx>
#include <simgear/props/propertyObject.hxx>
#include <simgear/props/props_io.hxx>
#include <simgear/scene/model/modellib.hxx>
#include <Aircraft/controls.hxx>
#include <Airports/runways.hxx>
@ -216,8 +217,13 @@ FGGlobals::~FGGlobals()
delete channellist;
simgear::PropertyObjectBase::setDefaultRoot(NULL);
simgear::SGModelLib::resetPropertyRoot();
delete locale;
locale = NULL;
delete props;
}
// set the fg_root path