Commit 301851da authored by Felix Nawothnig's avatar Felix Nawothnig Committed by Alexandre Julliard

Don't free ALSA device string when the device is closed since it might

be reopened.
parent ff915d45
...@@ -1557,8 +1557,6 @@ static DWORD wodClose(WORD wDevID) ...@@ -1557,8 +1557,6 @@ static DWORD wodClose(WORD wDevID)
wwo->p_handle = NULL; wwo->p_handle = NULL;
ret = wodNotifyClient(wwo, WOM_CLOSE, 0L, 0L); ret = wodNotifyClient(wwo, WOM_CLOSE, 0L, 0L);
HeapFree(GetProcessHeap(), 0, wwo->device);
} }
HeapFree(GetProcessHeap(), 0, wwo->ufds); HeapFree(GetProcessHeap(), 0, wwo->ufds);
...@@ -3044,8 +3042,6 @@ static DWORD widClose(WORD wDevID) ...@@ -3044,8 +3042,6 @@ static DWORD widClose(WORD wDevID)
wwi->p_handle = NULL; wwi->p_handle = NULL;
ret = widNotifyClient(wwi, WIM_CLOSE, 0L, 0L); ret = widNotifyClient(wwi, WIM_CLOSE, 0L, 0L);
HeapFree(GetProcessHeap(), 0, wwi->device);
} }
HeapFree(GetProcessHeap(), 0, wwi->ufds); HeapFree(GetProcessHeap(), 0, wwi->ufds);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment