Fix primary buffer memory leak.

This commit is contained in:
Robert Reif 2005-02-01 18:47:23 +00:00 committed by Alexandre Julliard
parent 7c14a9d493
commit e70f3e85d8
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ static ULONG WINAPI IDirectSoundImpl_Release(
IDsDriver_Release(This->driver);
HeapFree(GetProcessHeap(),0,This->tmp_buffer);
HeapFree(GetProcessHeap(),0,This->buffer);
RtlDeleteResource(&This->buffer_list_lock);
This->mixlock.DebugInfo->Spare[1] = 0;
DeleteCriticalSection(&This->mixlock);