aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2024-05-27 01:14:00 +0300
committerWohlstand <admin@wohlnet.ru>2024-05-27 01:14:00 +0300
commit8ea0409fdec8aea3933f5567f3d120a3101a9510 (patch)
treeb9d7153ba56dceb754787fe49622bdfbddebcb6c /utils
parentfddd3c353abf4bd76ee76b3e09229f1c4c57b883 (diff)
downloadlibADLMIDI-8ea0409fdec8aea3933f5567f3d120a3101a9510.tar.gz
libADLMIDI-8ea0409fdec8aea3933f5567f3d120a3101a9510.tar.bz2
libADLMIDI-8ea0409fdec8aea3933f5567f3d120a3101a9510.zip
MidiPlay: Fixed double-free of handlers
Diffstat (limited to 'utils')
-rw-r--r--utils/midiplay/audio_winmm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/midiplay/audio_winmm.c b/utils/midiplay/audio_winmm.c
index 8b6d4ad..8f2d781 100644
--- a/utils/midiplay/audio_winmm.c
+++ b/utils/midiplay/audio_winmm.c
@@ -210,6 +210,8 @@ void audio_stop(void)
WaitForSingleObject(g_thread, INFINITE);
CloseHandle(g_event);
CloseHandle(g_thread);
+ g_event = NULL;
+ g_thread = NULL;
}
audio_unlock();
}