diff --git a/src/sound/i_music.cpp b/src/sound/i_music.cpp index ba98b470d..0eedfbdc8 100644 --- a/src/sound/i_music.cpp +++ b/src/sound/i_music.cpp @@ -477,8 +477,6 @@ MusInfo *I_RegisterSong (const char *filename, BYTE *musiccache, int offset, int EMIDIType miditype = IdentifyMIDIType(id, sizeof(id)); if (miditype != MIDI_NOTMIDI) { - TArray midi; - EMidiDevice devtype = (EMidiDevice)device; retry_as_fmod: diff --git a/src/sound/music_gme.cpp b/src/sound/music_gme.cpp index 08700c8b3..0c3d8c8c3 100644 --- a/src/sound/music_gme.cpp +++ b/src/sound/music_gme.cpp @@ -349,6 +349,7 @@ bool GMESong::Read(SoundStream *stream, void *buff, int len, void *userdata) else { memset(buff, 0, len); + song->CritSec.Leave(); return false; } }