When exiting the game, an error occurs when the sound is played (callback function). Not always and much more often in Windows than in Linux. I don’t know what the reason is, it appears after calling free, SDL_LockAudio() or SDL_Quit().
When I do SDL_CloseAudio() first, then clear the memory and then SDL_Quit(), the error doesn’t appear…