mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Fixed joystick name dangling pointer.
This commit is contained in:
parent
aa6f8d40bd
commit
deed44a4af
|
@ -90,6 +90,7 @@ The following dependencies are needed by the examples and test programs:
|
|||
- [X11] Bugfix: `glfwDestroyWindow` did not flush the output buffer.
|
||||
- [X11] Bugfix: Window frame interactions were reported as focus events
|
||||
- [X11] Bugfix: Workaround for legacy Compiz caused flickering during resize
|
||||
- [X11] Bugfix: The name pointer of joysticks were not cleared on disconnection
|
||||
|
||||
|
||||
## Contact
|
||||
|
|
|
@ -112,7 +112,8 @@ static void pollJoystickEvents(void)
|
|||
free(_glfw.linux_js[i].axes);
|
||||
free(_glfw.linux_js[i].buttons);
|
||||
free(_glfw.linux_js[i].name);
|
||||
_glfw.linux_js[i].present = GL_FALSE;
|
||||
|
||||
memset(&_glfw.linux_js[i], 0, sizeof(_glfw.linux_js[i]));
|
||||
}
|
||||
|
||||
if (result == -1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user