From ee1e7aed11f7c04f51a06d0942174f67734e8f9e Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 5 Apr 2020 00:58:56 +0100 Subject: [PATCH] Fix unfreed memory --- src/Backends/GLFW3/Controller.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Backends/GLFW3/Controller.cpp b/src/Backends/GLFW3/Controller.cpp index 8ce20273..8abd138e 100644 --- a/src/Backends/GLFW3/Controller.cpp +++ b/src/Backends/GLFW3/Controller.cpp @@ -84,6 +84,9 @@ void ControllerBackend_Deinit(void) joystick_connected = FALSE; connected_joystick_id = 0; + + free(axis_neutrals); + axis_neutrals = NULL; } BOOL ControllerBackend_GetJoystickStatus(JOYSTICK_STATUS *status)