Commit 733a1051 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

wasapi: fix leak

parent ac5e5b8b
......@@ -311,6 +311,11 @@ static void MTAThread(void *data)
ReleaseSemaphore(sys->ready, 1, NULL);
WaitForSingleObject(sys->done, INFINITE);
/*if (AOUT_FMT_LINEAR(&format) && !exclusive)*/
{
if (sys->volume.simple != NULL)
ISimpleAudioVolume_Release(sys->volume.simple);
}
if (sys->clock != NULL)
IAudioClock_Release(sys->clock);
IAudioRenderClient_Release(sys->render);
......
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