Don't call Release on a null ptr.
This commit is contained in:
parent
73c72390f8
commit
753e4ee9bd
|
@ -5064,7 +5064,10 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
|
|||
* variants here too */
|
||||
if ((V_VT(&varresult) == (VT_UNKNOWN | VT_BYREF)) ||
|
||||
(V_VT(&varresult) == (VT_DISPATCH | VT_BYREF)))
|
||||
IUnknown_Release(*V_UNKNOWNREF(&varresult));
|
||||
{
|
||||
if(*V_UNKNOWNREF(&varresult))
|
||||
IUnknown_Release(*V_UNKNOWNREF(&varresult));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue