mirror of
https://github.com/reactos/wine.git
synced 2025-02-21 21:32:01 +00:00
dsound: Fix segv on use-after-free in IDirectSoundNotifyImpl_Release.
This commit is contained in:
parent
1aa71ea39e
commit
cb93f15e32
@ -82,8 +82,8 @@ static ULONG WINAPI IDirectSoundNotifyImpl_Release(LPDIRECTSOUNDNOTIFY iface)
|
||||
TRACE("(%p) ref was %d\n", This, ref + 1);
|
||||
|
||||
if (!ref) {
|
||||
IDirectSoundBuffer_Release((LPDIRECTSOUNDBUFFER)This->dsb);
|
||||
This->dsb->notify = NULL;
|
||||
IDirectSoundBuffer_Release((LPDIRECTSOUNDBUFFER)This->dsb);
|
||||
HeapFree(GetProcessHeap(), 0, This);
|
||||
TRACE("(%p) released\n", This);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user