X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FEnvironment%2Frealwx_ctrl.cxx;h=621fb11c3c829ba76c0c98214937c049aab5837f;hb=ed434d9967b0b23e4abb172d699ef956246f4bf9;hp=087040486bb6ff2dc85339ec21669bcd1261a515;hpb=ae320ca46c78cdb34c0cd730733dfb8ef3c737df;p=flightgear.git diff --git a/src/Environment/realwx_ctrl.cxx b/src/Environment/realwx_ctrl.cxx index 087040486..621fb11c3 100644 --- a/src/Environment/realwx_ctrl.cxx +++ b/src/Environment/realwx_ctrl.cxx @@ -40,6 +40,7 @@ #include #endif +using simgear::PropertyList; namespace Environment { @@ -69,6 +70,7 @@ LiveMetarProperties::LiveMetarProperties( SGPropertyNode_ptr rootNode ) : LiveMetarProperties::~LiveMetarProperties() { + _tiedProperties.Untie(); } void LiveMetarProperties::update( double dt ) @@ -106,7 +108,7 @@ protected: bool _enabled; bool __enabled; simgear::TiedPropertyList _tiedProperties; - ; typedef std::vector MetarPropertiesList; + typedef std::vector MetarPropertiesList; MetarPropertiesList _metarProperties; };