From 301851da5ab5f49d89039d7034c01aa7ee51a43d Mon Sep 17 00:00:00 2001 From: Felix Nawothnig Date: Wed, 31 Mar 2004 20:05:45 +0000 Subject: [PATCH] Don't free ALSA device string when the device is closed since it might be reopened. --- dlls/winmm/winealsa/audio.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c index d0a4349ef33..c7fd7aebffd 100644 --- a/dlls/winmm/winealsa/audio.c +++ b/dlls/winmm/winealsa/audio.c @@ -1557,8 +1557,6 @@ static DWORD wodClose(WORD wDevID) 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 @@ static DWORD widClose(WORD wDevID) wwi->p_handle = NULL; ret = widNotifyClient(wwi, WIM_CLOSE, 0L, 0L); - - HeapFree(GetProcessHeap(), 0, wwi->device); } HeapFree(GetProcessHeap(), 0, wwi->ufds); -- 2.11.4.GIT