[DSOUND] fix memory leak
Robert Reif
reif at earthlink.net
Tue Feb 1 06:59:02 CST 2005
Fix primary buffer memory leak.
-------------- next part --------------
Index: dlls/dsound/dsound.c
===================================================================
RCS file: /home/wine/wine/dlls/dsound/dsound.c,v
retrieving revision 1.27
diff -p -u -r1.27 dsound.c
--- dlls/dsound/dsound.c 24 Jan 2005 13:31:27 -0000 1.27
+++ dlls/dsound/dsound.c 1 Feb 2005 12:55:14 -0000
@@ -285,6 +285,7 @@ static ULONG WINAPI IDirectSoundImpl_Rel
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);
More information about the wine-patches
mailing list