Commit cb93f15e authored by Yuriy Kaminskiy's avatar Yuriy Kaminskiy Committed by Alexandre Julliard

dsound: Fix segv on use-after-free in IDirectSoundNotifyImpl_Release.

parent 1aa71ea3
......@@ -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);
}
......
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