Release property refs on shutdown.
This commit is contained in:
parent
fecb475145
commit
780393e2fe
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue