Changed point to osg::ref_ptr<> to prevent memory leaks.
This commit is contained in:
@@ -400,7 +400,7 @@ class OSGWIDGET_EXPORT EventInterface
|
||||
bool canKeyUp () const { return (_eventMask & EVENT_KEY_UP) != 0; }
|
||||
|
||||
private:
|
||||
typedef std::list<osg::observer_ptr<Callback> > CallbackList;
|
||||
typedef std::list<osg::ref_ptr<Callback> > CallbackList;
|
||||
|
||||
unsigned int _eventMask;
|
||||
CallbackList _callbacks;
|
||||
|
||||
Reference in New Issue
Block a user