Don't free ALSA device string when the device is closed since it might be reopened.
diff --git a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c index d0a4349..c7fd7ae 100644 --- a/dlls/winmm/winealsa/audio.c +++ b/dlls/winmm/winealsa/audio.c
@@ -1557,8 +1557,6 @@ wwo->p_handle = NULL; ret = wodNotifyClient(wwo, WOM_CLOSE, 0L, 0L); - - HeapFree(GetProcessHeap(), 0, wwo->device); } HeapFree(GetProcessHeap(), 0, wwo->ufds); @@ -3044,8 +3042,6 @@ wwi->p_handle = NULL; ret = widNotifyClient(wwi, WIM_CLOSE, 0L, 0L); - - HeapFree(GetProcessHeap(), 0, wwi->device); } HeapFree(GetProcessHeap(), 0, wwi->ufds);