Show
Ignore:
Timestamp:
05/21/15 16:11:54 (3 days ago)
Author:
robert
Message:

Fixed memory error associated with reading over the end of container due to an unbounded while loop.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgGA/EventVisitor

    r13307 r13890  
    5252        const osgGA::GUIActionAdapter* getActionAdapter() const { return _actionAdapter; } 
    5353 
    54  
    55         typedef std::list< osg::ref_ptr<GUIEventAdapter> > EventList; 
    56  
    57         void addEvent(GUIEventAdapter* event); 
    58         void removeEvent(GUIEventAdapter* event); 
     54        void addEvent(Event* event); 
     55        void removeEvent(Event* event); 
    5956 
    6057        void setEventHandled(bool handled) { _handled = handled; } 
    6158        bool getEventHandled() const { return _handled; } 
    62  
    6359 
    6460        void setEvents(const EventQueue::Events& events) { _events = events; } 
     
    138134        bool                            _handled; 
    139135        EventQueue::Events              _events; 
    140  
    141136}; 
    142137