From 2ac79e07ddca6bcce74b1816c83db2232cd2ee1e Mon Sep 17 00:00:00 2001 From: JibbSmart Date: Mon, 8 Feb 2021 13:38:03 +0800 Subject: [PATCH] Clean up touch callback in dispose function as caught by Nicolas --- JoyShockLibrary/JoyShockLibrary.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/JoyShockLibrary/JoyShockLibrary.cpp b/JoyShockLibrary/JoyShockLibrary.cpp index 91cb717..1435c8d 100644 --- a/JoyShockLibrary/JoyShockLibrary.cpp +++ b/JoyShockLibrary/JoyShockLibrary.cpp @@ -362,6 +362,7 @@ void JslDisconnectAndDisposeAll() { // no more callback JslSetCallback(nullptr); + JslSetTouchCallback(nullptr); for (std::pair pair : _joyshocks) {