Commit 1656f6b7 authored by Alexander Dorofeyev's avatar Alexander Dorofeyev Committed by Alexandre Julliard

quartz: Add missing VariantClear after GetFilterInfo calls.

parent 1cd83afd
...@@ -994,6 +994,8 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut, ...@@ -994,6 +994,8 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
goto error; goto error;
} }
VariantClear(&var);
hr = IBaseFilter_EnumPins(pfilter, &penumpins); hr = IBaseFilter_EnumPins(pfilter, &penumpins);
if (FAILED(hr)) { if (FAILED(hr)) {
WARN("Enumpins (%x)\n", hr); WARN("Enumpins (%x)\n", hr);
...@@ -1070,6 +1072,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut, ...@@ -1070,6 +1072,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
} }
error: error:
VariantClear(&var);
if (ppinfilter) IPin_Release(ppinfilter); if (ppinfilter) IPin_Release(ppinfilter);
if (pfilter) { if (pfilter) {
IFilterGraph2_RemoveFilter(iface, pfilter); IFilterGraph2_RemoveFilter(iface, pfilter);
...@@ -1347,6 +1350,9 @@ static HRESULT WINAPI FilterGraph2_Render(IFilterGraph2 *iface, IPin *ppinOut) ...@@ -1347,6 +1350,9 @@ static HRESULT WINAPI FilterGraph2_Render(IFilterGraph2 *iface, IPin *ppinOut)
goto error; goto error;
} }
TRACE("Connected, recursing %s\n", debugstr_w(V_UNION(&var, bstrVal))); TRACE("Connected, recursing %s\n", debugstr_w(V_UNION(&var, bstrVal)));
VariantClear(&var);
hr = FilterGraph2_RenderRecurse(This, ppinfilter); hr = FilterGraph2_RenderRecurse(This, ppinfilter);
if (FAILED(hr)) { if (FAILED(hr)) {
WARN("Unable to connect recursively (%x)\n", hr); WARN("Unable to connect recursively (%x)\n", hr);
...@@ -1356,6 +1362,7 @@ static HRESULT WINAPI FilterGraph2_Render(IFilterGraph2 *iface, IPin *ppinOut) ...@@ -1356,6 +1362,7 @@ static HRESULT WINAPI FilterGraph2_Render(IFilterGraph2 *iface, IPin *ppinOut)
break; break;
error: error:
VariantClear(&var);
if (pfilter) { if (pfilter) {
IFilterGraph2_RemoveFilter(iface, pfilter); IFilterGraph2_RemoveFilter(iface, pfilter);
IBaseFilter_Release(pfilter); IBaseFilter_Release(pfilter);
......
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