1
0
Fork 0

autopilot: Introduce virtual dtor.

Introduce a virtual destructor to make deleting
FunctorBase instances ComponentForge::~ComponentForge
work reliable.
This commit is contained in:
Mathias Froehlich 2012-07-29 17:57:23 +02:00
parent a131589a6c
commit 86e61cfd78

View file

@ -31,6 +31,7 @@ namespace FGXMLAutopilot {
template <class TBase> class FunctorBase {
public:
virtual ~FunctorBase() {}
virtual TBase * operator()( SGPropertyNode_ptr configNode ) = 0;
};