Commit 6343dc6c authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dmime: Add Release() on some codepaths.

parent b138be09
......@@ -373,7 +373,10 @@ static HRESULT WINAPI segment_GetParam(IDirectMusicSegment8 *iface, REFGUID type
for (i = 0, count = 0; i < DMUS_SEG_ANYTRACK && count <= index; i++) {
if (FAILED(segment_GetTrack(iface, &GUID_NULL, group, i, &track))) break;
if (FAILED(IDirectMusicTrack_IsParamSupported(track, type)))
{
IDirectMusicTrack_Release(track);
continue;
}
if (index == count || index == DMUS_SEG_ANYTRACK)
hr = IDirectMusicTrack_GetParam(track, type, time, next, param);
IDirectMusicTrack_Release(track);
......
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