From 8ea0409fdec8aea3933f5567f3d120a3101a9510 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Mon, 27 May 2024 01:14:00 +0300 Subject: MidiPlay: Fixed double-free of handlers --- utils/midiplay/audio_winmm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/midiplay/audio_winmm.c') 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(); } -- cgit v1.2.3