Fixed leak on exit.

This commit is contained in:
Branimir Karadžić 2015-03-28 10:33:27 -07:00
parent 4b18babb62
commit 092f8f19e7

View file

@ -161,6 +161,14 @@ namespace entry
class EventQueue
{
public:
~EventQueue()
{
for (const Event* ev = poll(); NULL != ev; ev = poll() )
{
release(ev);
}
}
void postAxisEvent(WindowHandle _handle, GamepadHandle _gamepad, GamepadAxis::Enum _axis, int32_t _value)
{
AxisEvent* ev = new AxisEvent(_handle);