HRESULT ReleaseVarDesc(
VARDESC FAR* pVarDesc
);
Releases a VARDESC previously returned by GetVarDesc.
ReleaseVarDesc releases a VARDESC that was returned through ITypeInfo::GetVarDesc.
VARDESC FAR *pVarDesc;
CHECKRESULT(ptypeinfo->GetVarDesc(i, &pvardesc));
idMember = pvardesc->memid;
CHECKRESULT(ptypeinfo->GetDocumentation(idMember, &bstrName, NULL, NULL, NULL));
ptypeinfo->ReleaseVarDesc(pvardesc);