dmime: Avoid releasing the newly created graph twice.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55790
This commit is contained in:
Rémi Bernon 2023-10-17 12:41:40 +02:00 committed by Alexandre Julliard
parent 7c9e8b9c4e
commit 231dd330cf

View file

@ -195,8 +195,6 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud
if (FAILED(hr))
return hr;
IDirectMusicPerformance8_SetGraph(This->pPerf, pGraph);
/* we need release as SetGraph do an AddRef */
IDirectMusicGraph_Release(pGraph);
pPerfoGraph = pGraph;
}
*ppObject = pPerfoGraph;