diff --git a/include/osgGA/GUIEventHandler b/include/osgGA/GUIEventHandler index 3d66db9e3..e9d6dc636 100644 --- a/include/osgGA/GUIEventHandler +++ b/include/osgGA/GUIEventHandler @@ -122,6 +122,10 @@ public: protected: unsigned int _ignoreHandledEventsMask; #endif + +protected: + virtual ~GUIEventHandler(); + }; } diff --git a/src/osgGA/GUIEventHandler.cpp b/src/osgGA/GUIEventHandler.cpp index 04a845aa1..b518100ca 100644 --- a/src/osgGA/GUIEventHandler.cpp +++ b/src/osgGA/GUIEventHandler.cpp @@ -16,6 +16,13 @@ using namespace osgGA; + +GUIEventHandler::~GUIEventHandler() +{ + +} + + // adapt EventHandler usage to old style GUIEventHandler usage bool GUIEventHandler::handle(osgGA::Event* event, osg::Object* object, osg::NodeVisitor* nv) {