diff options
author | MSC <m.schlack@protonmail.com> | 2016-04-03 19:24:39 +0200 |
---|---|---|
committer | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-04-03 19:24:39 +0200 |
commit | 391095e0efe075268b892ff47a5885f5a6e2706f (patch) | |
tree | a44574f353493b5587a3ef2623d8c03b782cd40c /platform/x11 | |
parent | 7a9998370f0a805a75634f31558abba9c4d74a48 (diff) |
memdelete 'joy_thread' + 'joy_mutex' on ::~joystick_linux()
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/joystick_linux.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/x11/joystick_linux.cpp b/platform/x11/joystick_linux.cpp index 0615f33f96..2793cc5734 100644 --- a/platform/x11/joystick_linux.cpp +++ b/platform/x11/joystick_linux.cpp @@ -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(); } |