Since the audio thread is never joined/freed in the music destructor, it causes a data abort. This fix simply stops the music playback in the destructor. I also fixed a potential bug by causing Music::stop to have no effect if the music is not currently playing.
Since the audio thread is never joined/freed in the music destructor, it causes a data abort. This fix simply stops the music playback in the destructor. I also fixed a potential bug by causing
Music::stop
to have no effect if the music is not currently playing.