mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 15:25:50 +00:00
Fixed leaks of joystick mutable arrays.
This commit is contained in:
@@ -443,6 +443,13 @@ void _glfwTerminateJoysticks(void)
|
||||
{
|
||||
_GLFWjoystickIOKit* joystick = &_glfw.iokit_js[i];
|
||||
removeJoystick(joystick);
|
||||
|
||||
if (joystick->axisElements)
|
||||
CFRelease(joystick->axisElements);
|
||||
if (joystick->buttonElements)
|
||||
CFRelease(joystick->buttonElements);
|
||||
if (joystick->hatElements)
|
||||
CFRelease(joystick->hatElements);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user