mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fixed leak on exit.
This commit is contained in:
parent
4b18babb62
commit
092f8f19e7
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue