free capacitive sensors on joystick close
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

Fixes: #15856
This commit is contained in:
Gabriel Ford
2026-06-19 20:05:28 -05:00
committed by Sam Lantinga
parent d7e25c92c0
commit 49879ba0d6
+1
View File
@@ -2259,6 +2259,7 @@ void SDL_CloseJoystick(SDL_Joystick *joystick)
}
SDL_free(joystick->touchpads);
SDL_free(joystick->sensors);
SDL_free(joystick->capsenses);
SDL_free(joystick);
}
SDL_UnlockJoysticks();