From: James Turner Date: Wed, 25 Feb 2015 22:58:56 +0000 (+0000) Subject: Fix cleanup of RouteDataPrivate X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1def2219323046f5348e1ba9b3839ae42da7efe;p=flightgear.git Fix cleanup of RouteDataPrivate --- 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