Skip to content

Commit c83d525

Browse files
committed
Release correct TypeAttr pointer... Closes #3938
1 parent 660986e commit c83d525

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)