Commit caff6433 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

xaudio2_7: Unset DebugInfo->Spare[0] before destroying critical sections.

parent 0fb6168f
......@@ -1252,12 +1252,14 @@ static ULONG WINAPI IXAudio2Impl_Release(IXAudio2 *iface)
LIST_FOR_EACH_ENTRY_SAFE(src, src2, &This->source_voices, XA2SourceImpl, entry){
HeapFree(GetProcessHeap(), 0, src->sends);
IXAudio2SourceVoice_DestroyVoice(&src->IXAudio2SourceVoice_iface);
src->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&src->lock);
HeapFree(GetProcessHeap(), 0, src);
}
LIST_FOR_EACH_ENTRY_SAFE(sub, sub2, &This->submix_voices, XA2SubmixImpl, entry){
IXAudio2SubmixVoice_DestroyVoice(&sub->IXAudio2SubmixVoice_iface);
sub->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&sub->lock);
HeapFree(GetProcessHeap(), 0, sub);
}
......@@ -1273,6 +1275,7 @@ static ULONG WINAPI IXAudio2Impl_Release(IXAudio2 *iface)
CloseHandle(This->mmevt);
This->lock.DebugInfo->Spare[0] = 0;
DeleteCriticalSection(&This->lock);
HeapFree(GetProcessHeap(), 0, This);
......
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