quartz/tests: Fix potential NULL dereference (Coverity).
This commit is contained in:
parent
67684c4850
commit
48865c9064
|
@ -1122,10 +1122,13 @@ static HRESULT TestFilter_Create(const CLSID* pClsid, const TestFilterPinData *p
|
|||
|
||||
error:
|
||||
|
||||
if (pTestFilter->ppPins)
|
||||
{
|
||||
for (i = 0; i < nPins; i++)
|
||||
{
|
||||
if (pTestFilter->ppPins[i]) IPin_Release(pTestFilter->ppPins[i]);
|
||||
}
|
||||
}
|
||||
CoTaskMemFree(pTestFilter->ppPins);
|
||||
DeleteCriticalSection(&pTestFilter->csFilter);
|
||||
CoTaskMemFree(pTestFilter);
|
||||
|
|
Loading…
Reference in New Issue