From 391095e0efe075268b892ff47a5885f5a6e2706f Mon Sep 17 00:00:00 2001 From: MSC Date: Sun, 3 Apr 2016 19:24:39 +0200 Subject: [PATCH] memdelete 'joy_thread' + 'joy_mutex' on ::~joystick_linux() --- platform/x11/joystick_linux.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/x11/joystick_linux.cpp b/platform/x11/joystick_linux.cpp index 0615f33f965..2793cc57346 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(); }