Rob Shearman : oleaut32: Fix a missing ITypeInfo::
ReleaseTypeAttr in the typelib marshaling code.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Oct 23 10:03:24 CDT 2006
Module: wine
Branch: master
Commit: 053f69acedd9a389f9d022d51126df799ad95eec
URL: http://source.winehq.org/git/wine.git/?a=commit;h=053f69acedd9a389f9d022d51126df799ad95eec
Author: Rob Shearman <rob at codeweavers.com>
Date: Mon Oct 23 11:46:08 2006 +0100
oleaut32: Fix a missing ITypeInfo::ReleaseTypeAttr in the typelib marshaling code.
---
dlls/oleaut32/tmarshal.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c
index 9749120..ee35076 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) {
More information about the wine-cvs
mailing list