FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

MethodBinding missing XIncref fix. (In the infrequent execution pass). · attackgithub/pythonnet@7fd464b · GitHub

Repository navigation

Commit 7fd464b

Browse files
dse
committed
MethodBinding missing XIncref fix. (In the infrequent execution pass).
1 parent 5649258 commit 7fd464b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL