Commit 158a2c96 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

dsound: Close sleepev handle after releasing audio client.

It's used as audio client event handle, so it shouldn't be closed as long as audio client is alive. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAndrew Eikum <aeikum@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent ee9f2c62
......@@ -207,7 +207,6 @@ static ULONG DirectSoundDevice_Release(DirectSoundDevice * device)
CloseHandle(device->thread);
CloseHandle(device->thread_finished);
}
CloseHandle(device->sleepev);
EnterCriticalSection(&DSOUND_renderers_lock);
list_remove(&device->entry);
......@@ -234,6 +233,7 @@ static ULONG DirectSoundDevice_Release(DirectSoundDevice * device)
IAudioStreamVolume_Release(device->volume);
if(device->mmdevice)
IMMDevice_Release(device->mmdevice);
CloseHandle(device->sleepev);
HeapFree(GetProcessHeap(), 0, device->tmp_buffer);
HeapFree(GetProcessHeap(), 0, device->cp_buffer);
HeapFree(GetProcessHeap(), 0, device->buffer);
......
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