Commit 231dd330 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dmime: Avoid releasing the newly created graph twice.

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