]> git.mxchange.org Git - flightgear.git/commitdiff
Fix cleanup of RouteDataPrivate
authorJames Turner <zakalawe@mac.com>
Wed, 25 Feb 2015 22:58:56 +0000 (22:58 +0000)
committerJames Turner <zakalawe@mac.com>
Wed, 25 Feb 2015 22:58:56 +0000 (22:58 +0000)
src/Navaids/routePath.cxx
src/Navaids/routePath.hxx

index 4e5e397687522789d7b8dbc41a0a4a2f020c2533..0138425cad4bb028a40d071ea860d25a74df2d00 100644 (file)
@@ -862,6 +862,10 @@ RoutePath::RoutePath(const flightgear::FlightPlan* fp) :
     commonInit();
 }
 
+RoutePath::~RoutePath()
+{
+}
+
 void RoutePath::commonInit()
 {
   d->initPerfData();
index ac9e87130b5abd0e92624aa493e435348999edf8..799731e9d736999a6c024f358058437a326202ca 100644 (file)
@@ -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<RoutePathPrivate> d;
 };
 
 #endif