]> git.mxchange.org Git - flightgear.git/commitdiff
autopilot: Introduce virtual dtor.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 29 Jul 2012 15:57:23 +0000 (17:57 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 29 Jul 2012 15:59:38 +0000 (17:59 +0200)
Introduce a virtual destructor to make deleting
FunctorBase instances ComponentForge::~ComponentForge
work reliable.

src/Autopilot/functor.hxx

index 2f1ac36dfa2f18d8276248cc8f26fca09a184ba3..4b1fda6f0a0bf89ee800483f2a36dfe734920097 100644 (file)
@@ -31,6 +31,7 @@ namespace FGXMLAutopilot {
 
 template <class TBase> class FunctorBase {
 public:
+  virtual ~FunctorBase() {}
   virtual TBase * operator()( SGPropertyNode_ptr configNode ) = 0;
 };