Skip to content

Commit 9770c92

Browse files
author
dse
committed
MethodBinding missing XIncref fix. (In the infrequent execution pass).
1 parent 1033b43 commit 9770c92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/methodbinding.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ public MethodBinding(MethodObject m, IntPtr target, IntPtr targetType)
2121
Runtime.XIncref(target);
2222
this.target = target;
2323

24-
Runtime.XIncref(targetType);
2524
if (targetType == IntPtr.Zero)
2625
{
2726
targetType = Runtime.PyObject_Type(target);
2827
}
28+
29+
Runtime.XIncref(targetType);
2930
this.targetType = targetType;
3031

3132
this.info = null;

0 commit comments

Comments
 (0)