From: James Turner Date: Sun, 2 Jun 2013 18:59:18 +0000 (+0100) Subject: Fix a couple of issues valgrind identified. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=313b31ad9abb070820fc017b0836ef42809b6a7f;p=flightgear.git Fix a couple of issues valgrind identified. --- diff --git a/src/Instrumentation/gps.cxx b/src/Instrumentation/gps.cxx index bb1e9d490..e38a1d04b 100644 --- a/src/Instrumentation/gps.cxx +++ b/src/Instrumentation/gps.cxx @@ -107,6 +107,12 @@ GPS::GPS ( SGPropertyNode *node, bool defaultGPSMode) : SGPropertyNode *wp_node = _gpsNode->getChild("wp", 0, true); _currentWayptNode = wp_node->getChild("wp", 1, true); + +#if FG_210_COMPAT + _searchIsRoute = false; + _searchHasNext = false; + _searchType = FGPositioned::INVALID; +#endif } GPS::~GPS () diff --git a/src/Instrumentation/transponder.cxx b/src/Instrumentation/transponder.cxx index a555aba36..b95e9404d 100644 --- a/src/Instrumentation/transponder.cxx +++ b/src/Instrumentation/transponder.cxx @@ -48,6 +48,7 @@ const int INVALID_ID = -9999; Transponder::Transponder(SGPropertyNode *node) : + _identMode(false), _name(node->getStringValue("name", "transponder")), _num(node->getIntValue("number", 0)), _mode((Mode) node->getIntValue("mode", 1)),