mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +00:00
- fixed: MIDIStreamer::Update did not check if the device was still valid.
Stopping a song can delete device while the streamer is still valid.
This commit is contained in:
parent
439e4f9f94
commit
f9bb64a5f3
1 changed files with 1 additions and 1 deletions
|
@ -641,7 +641,7 @@ void MIDIStreamer::Callback(void *userdata)
|
|||
|
||||
void MIDIStreamer::Update()
|
||||
{
|
||||
if (!MIDI->Update()) Stop();
|
||||
if (MIDI != nullptr && !MIDI->Update()) Stop();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue