qcap: Fix a mem leak on an error path. Found by Smatch.

This commit is contained in:
Michael Stefaniuc 2007-11-19 00:19:47 +01:00 committed by Alexandre Julliard
parent 04380452d0
commit 0805f6bb83
1 changed files with 2 additions and 0 deletions

View File

@ -767,6 +767,8 @@ VfwPin_Construct( IBaseFilter * pBaseFilter, LPCRITICAL_SECTION pCritSec,
*ppPin = (IPin *)(&pPinImpl->pin.pin.lpVtbl);
return S_OK;
}
CoTaskMemFree(pPinImpl);
return E_FAIL;
}