free capacitive sensors on joystick close
Some checks are pending
Build (All) / Create test plan (push) Waiting to run
Build (All) / level1 (push) Blocked by required conditions
Build (All) / level2 (push) Blocked by required conditions

Fixes: #15856
This commit is contained in:
Gabriel Ford 2026-06-19 19:38:13 -04:00 committed by Sam Lantinga
parent d7e25c92c0
commit 49879ba0d6

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();