Commit 5a8ee371 authored by Chris Robinson's avatar Chris Robinson Committed by Alexandre Julliard

quartz: Don't release filters when they connect.

parent 0746b907
......@@ -815,7 +815,6 @@ static HRESULT WINAPI GraphBuilder_Connect(IGraphBuilder *iface,
}
while (++i < nb) IPin_Release(ppins[i]);
CoTaskMemFree(ppins);
IBaseFilter_Release(pfilter);
IPin_Release(ppinfilter);
break;
}
......@@ -1082,7 +1081,7 @@ static HRESULT WINAPI GraphBuilder_RenderFile(IGraphBuilder *iface,
}
IGraphBuilder_RemoveFilter(iface, psplitter);
IBaseFilter_Release(psplitter);
ppinsplitter = NULL;
psplitter = NULL;
}
/* Render all output pin of the splitter by calling IGraphBuilder_Render on each of them */
......@@ -1104,10 +1103,6 @@ static HRESULT WINAPI GraphBuilder_RenderFile(IGraphBuilder *iface,
hr = (partial ? VFW_S_PARTIAL_RENDER : S_OK);
}
if (psplitter)
IBaseFilter_Release(psplitter);
IBaseFilter_Release(preader);
return hr;
}
......
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