Commit a1cbc47b authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

wineoss: Use standard allocator in AudioClient's Initialize.

parent 92a251a9
......@@ -398,7 +398,7 @@ static ULONG WINAPI AudioClient_Release(IAudioClient3 *iface)
list_remove(&This->entry);
sessions_unlock();
}
HeapFree(GetProcessHeap(), 0, This->vols);
free(This->vols);
if(This->stream)
stream_release(This->stream, This->timer_thread);
HeapFree(GetProcessHeap(), 0, This);
......@@ -587,7 +587,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
return params.result;
}
This->vols = HeapAlloc(GetProcessHeap(), 0, channel_count * sizeof(float));
This->vols = malloc(channel_count * sizeof(float));
if(!This->vols){
params.result = E_OUTOFMEMORY;
goto exit;
......@@ -600,7 +600,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
exit:
if(FAILED(params.result)){
stream_release(stream, NULL);
HeapFree(GetProcessHeap(), 0, This->vols);
free(This->vols);
This->vols = NULL;
} else {
list_add_tail(&This->session->clients, &This->entry);
......
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