From 86e61cfd7817b6cf83640d759fa6b6be8c0f67ca Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sun, 29 Jul 2012 17:57:23 +0200 Subject: [PATCH] autopilot: Introduce virtual dtor. Introduce a virtual destructor to make deleting FunctorBase instances ComponentForge::~ComponentForge work reliable. --- src/Autopilot/functor.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Autopilot/functor.hxx b/src/Autopilot/functor.hxx index 2f1ac36df..4b1fda6f0 100644 --- a/src/Autopilot/functor.hxx +++ b/src/Autopilot/functor.hxx @@ -31,6 +31,7 @@ namespace FGXMLAutopilot { template class FunctorBase { public: + virtual ~FunctorBase() {} virtual TBase * operator()( SGPropertyNode_ptr configNode ) = 0; }; -- 2.39.5