The music_buffer is a global variable, and must not be freed until the player thread exits.
Attach a file by drag & drop or click to upload