From e1def2219323046f5348e1ba9b3839ae42da7efe Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 25 Feb 2015 22:58:56 +0000 Subject: [PATCH] Fix cleanup of RouteDataPrivate --- src/Navaids/routePath.cxx | 4 ++++ src/Navaids/routePath.hxx | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Navaids/routePath.cxx b/src/Navaids/routePath.cxx index 4e5e39768..0138425ca 100644 --- a/src/Navaids/routePath.cxx +++ b/src/Navaids/routePath.cxx @@ -862,6 +862,10 @@ RoutePath::RoutePath(const flightgear::FlightPlan* fp) : commonInit(); } +RoutePath::~RoutePath() +{ +} + void RoutePath::commonInit() { d->initPerfData(); diff --git a/src/Navaids/routePath.hxx b/src/Navaids/routePath.hxx index ac9e87130..799731e9d 100644 --- a/src/Navaids/routePath.hxx +++ b/src/Navaids/routePath.hxx @@ -38,7 +38,8 @@ class RoutePath { public: RoutePath(const flightgear::FlightPlan* fp); - + ~RoutePath(); + SGGeodVec pathForIndex(int index) const; SGGeod positionForIndex(int index) const; @@ -64,7 +65,7 @@ private: void interpolateGreatCircle(const SGGeod& aFrom, const SGGeod& aTo, SGGeodVec& r) const; - RoutePathPrivate* d; + std::auto_ptr d; }; #endif -- 2.39.5