Skip to content

Commit e988773

Browse files
authored
Merge pull request #4546 from comintern/cco
Release correct TypeAttr pointer... Closes #3938
2 parents 10ac1f0 + c83d525 commit e988773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.Parsing/ComReflection/ComInterface.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private void GetImplementedInterfaces(ITypeInfo info, TYPEATTR typeAttr)
8080
info.GetRefTypeInfo(href, out ITypeInfo implemented);
8181

8282
implemented.GetTypeAttr(out IntPtr attribPtr);
83-
using (DisposalActionContainer.Create(attribPtr, info.ReleaseTypeAttr))
83+
using (DisposalActionContainer.Create(attribPtr, implemented.ReleaseTypeAttr))
8484
{
8585
var attribs = Marshal.PtrToStructure<TYPEATTR>(attribPtr);
8686

0 commit comments

Comments
 (0)