Don't call Release on a null ptr.

This commit is contained in:
Huw Davies 2005-11-02 20:54:34 +00:00 committed by Alexandre Julliard
parent 73c72390f8
commit 753e4ee9bd
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}
}