]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/routePath.hxx
Fix cleanup of RouteDataPrivate
[flightgear.git] / src / Navaids / routePath.hxx
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