memdelete 'joy_thread' + 'joy_mutex' on ::~joystick_linux()
This commit is contained in:
parent
7a9998370f
commit
391095e0ef
1 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,8 @@ joystick_linux::joystick_linux(InputDefault *in)
|
|||
joystick_linux::~joystick_linux() {
|
||||
exit_udev = true;
|
||||
Thread::wait_to_finish(joy_thread);
|
||||
memdelete(joy_thread);
|
||||
memdelete(joy_mutex);
|
||||
close_joystick();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue