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

This commit is contained in:
Yuriy Kaminskiy 2009-05-30 20:59:13 +04:00 committed by Alexandre Julliard
parent 1aa71ea39e
commit cb93f15e32
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}