dmime/tests: Destroy the performance on an error path (Valgrind).

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=36272
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Michael Stefaniuc 2020-01-06 20:29:44 +01:00 committed by Alexandre Julliard
parent fef352cb81
commit 5b96ed0207
1 changed files with 3 additions and 1 deletions

View File

@ -96,8 +96,10 @@ static HRESULT test_InitAudio(void)
dsound = NULL;
hr = IDirectMusicPerformance8_InitAudio(performance, NULL, &dsound, NULL,
DMUS_APATH_SHARED_STEREOPLUSREVERB, 128, DMUS_AUDIOF_ALL, NULL);
if(hr != S_OK)
if (hr != S_OK) {
IDirectMusicPerformance8_Release(performance);
return hr;
}
port = NULL;
hr = IDirectMusicPerformance8_PChannelInfo(performance, 128, &port, NULL, NULL);