mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
winealsa.drv: Fix invalid pointer dereference on error path.
This commit is contained in:
parent
ad009330f5
commit
f2c33ae17a
@ -580,8 +580,8 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(const char *key, IMMDevice *dev,
|
||||
This->hw_params = HeapAlloc(GetProcessHeap(), 0,
|
||||
snd_pcm_hw_params_sizeof());
|
||||
if(!This->hw_params){
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
snd_pcm_close(This->pcm_handle);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user