]> git.mxchange.org Git - flightgear.git/commitdiff
Release property refs on shutdown.
authorJames Turner <zakalawe@mac.com>
Sat, 16 Nov 2013 11:56:42 +0000 (11:56 +0000)
committerJames Turner <zakalawe@mac.com>
Sat, 16 Nov 2013 11:56:42 +0000 (11:56 +0000)
src/Main/globals.cxx

index 767dcb5a242728a7b21f89f5fb5afca24e887b7a..c53656d17abe7459d13d4f4eb06d62ed26efdc20 100644 (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