From 9bd4ba6eb05e10190cfb49a45fe913016932eae4 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 24 Oct 2011 18:21:50 +0100 Subject: [PATCH] Anchor flight gear::Waypt's destructor, and make it virtual. --- src/Navaids/route.cxx | 4 ++++ src/Navaids/route.hxx | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/Navaids/route.cxx b/src/Navaids/route.cxx index 0dc9b2c0f..6a32f112b 100644 --- a/src/Navaids/route.cxx +++ b/src/Navaids/route.cxx @@ -65,6 +65,10 @@ Waypt::Waypt(Route* aOwner) : { } +Waypt::~Waypt() +{ +} + std::string Waypt::ident() const { return ""; diff --git a/src/Navaids/route.hxx b/src/Navaids/route.hxx index cd2114f6d..c18c3883d 100644 --- a/src/Navaids/route.hxx +++ b/src/Navaids/route.hxx @@ -85,6 +85,8 @@ typedef enum { class Waypt : public SGReferenced { public: + virtual ~Waypt(); + Route* owner() const { return _owner; }