dmime: IDirectMusicAudioPath Release primary buffer.

In IDirectMusicAudioPath CreateStandardAudioPath we create a
AudioPath object and assign it a primary buffer object which
needs to be released.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36272
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Alistair Leslie-Hughes 2019-12-18 05:06:44 +00:00 committed by Alexandre Julliard
parent 1aaf870039
commit fa66c1b301
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ static ULONG WINAPI IDirectMusicAudioPathImpl_Release (IDirectMusicAudioPath *if
TRACE("(%p): ReleaseRef to %d\n", This, ref);
if (ref == 0) {
if (This->pPrimary)
IDirectSoundBuffer_Release(This->pPrimary);
if (This->pDSBuffer)
IDirectSoundBuffer_Release(This->pDSBuffer);
This->pPerf = NULL;