1
0
Fork 0

Fix cleanup of RouteDataPrivate

This commit is contained in:
James Turner 2015-02-25 22:58:56 +00:00
parent 0034d6b59a
commit e1def22193
2 changed files with 7 additions and 2 deletions

View file

@ -862,6 +862,10 @@ RoutePath::RoutePath(const flightgear::FlightPlan* fp) :
commonInit();
}
RoutePath::~RoutePath()
{
}
void RoutePath::commonInit()
{
d->initPerfData();

View 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