You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
memdelete 'joy_thread' + 'joy_mutex' on ::~joystick_linux()
(cherry picked from commit 391095e0ef)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user