Fixed joystick name dangling pointer.

This commit is contained in:
Camilla Berglund
2014-05-16 11:25:34 +02:00
parent aa6f8d40bd
commit deed44a4af
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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)