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

fixup! Incref a valid pointer · chubbyerror/pythonnet@1ae0bfe · GitHub

Repository navigation

Commit 1ae0bfe

Browse files
committed
fixup! Incref a valid pointer
1 parent 308f0f2 commit 1ae0bfe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/runtime/methodbinding.cs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ public MethodBinding(MethodObject m, IntPtr target, IntPtr targetType)
2626
{
2727
targetType = Runtime.PyObject_Type(target);
2828
}
29-
Runtime.XIncref(targetType);
29+
else
30+
{
31+
Runtime.XIncref(targetType);
32+
}
33+
3034
this.targetType = targetType;
3135

3236
this.info = null;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL