Commit 48865c90 authored by Alexander Dorofeyev's avatar Alexander Dorofeyev Committed by Alexandre Julliard

quartz/tests: Fix potential NULL dereference (Coverity).

parent 67684c48
......@@ -1122,9 +1122,12 @@ static HRESULT TestFilter_Create(const CLSID* pClsid, const TestFilterPinData *p
error:
for (i = 0; i < nPins; i++)
if (pTestFilter->ppPins)
{
if (pTestFilter->ppPins[i]) IPin_Release(pTestFilter->ppPins[i]);
for (i = 0; i < nPins; i++)
{
if (pTestFilter->ppPins[i]) IPin_Release(pTestFilter->ppPins[i]);
}
}
CoTaskMemFree(pTestFilter->ppPins);
DeleteCriticalSection(&pTestFilter->csFilter);
......
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