From: James Turner Date: Sat, 16 Nov 2013 11:56:42 +0000 (+0000) Subject: Release property refs on shutdown. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=780393e2fe6ea1e89d2ba1474e50c0236f98eb23;p=flightgear.git Release property refs on shutdown. --- diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 767dcb5a2..c53656d17 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -39,6 +39,7 @@ #include #include #include +#include #include #include @@ -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