From 053f69acedd9a389f9d022d51126df799ad95eec Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Mon, 23 Oct 2006 11:46:08 +0100 Subject: [PATCH] oleaut32: Fix a missing ITypeInfo::ReleaseTypeAttr in the typelib marshaling code. --- dlls/oleaut32/tmarshal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index 97491208322..ee35076d4a7 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -1201,8 +1201,12 @@ _get_funcdesc( } hres = _get_funcdesc(tinfo2,iMethod,tactual,fdesc,iname,fname); ITypeInfo_Release(tinfo2); - if (!hres) return S_OK; + if (!hres) { + ITypeInfo_ReleaseTypeAttr(tinfo, attr); + return S_OK; + } } + ITypeInfo_ReleaseTypeAttr(tinfo, attr); return hres; } if (((*fdesc)->oVft/4) == iMethod) {