From 313b31ad9abb070820fc017b0836ef42809b6a7f Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 2 Jun 2013 19:59:18 +0100 Subject: [PATCH] Fix a couple of issues valgrind identified. --- src/Instrumentation/gps.cxx | 6 ++++++ src/Instrumentation/transponder.cxx | 1 + 2 files changed, 7 insertions(+) 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)), -- 2.39.5