qcap: Release IBaseFilter.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
442653b94e
commit
ca4227bdf4
|
@ -687,6 +687,7 @@ fnCaptureGraphBuilder2_FindPin(ICaptureGraphBuilder2 * iface,
|
|||
if (FAILED(hr))
|
||||
{
|
||||
WARN("Could not enumerate\n");
|
||||
IBaseFilter_Release(filter);
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
@ -720,6 +721,7 @@ fnCaptureGraphBuilder2_FindPin(ICaptureGraphBuilder2 * iface,
|
|||
break;
|
||||
}
|
||||
IEnumPins_Release(enumpins);
|
||||
IBaseFilter_Release(filter);
|
||||
|
||||
if (hr != S_OK)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue