Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't leak init reference
  • Loading branch information
Rickard Holmberg committed Jun 21, 2017
commit 4d508055ac653ef88b3f198c75e3e0a6743f77be
1 change: 1 addition & 0 deletions src/runtime/metatype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public static IntPtr tp_call(IntPtr tp, IntPtr args, IntPtr kw)
if (init != IntPtr.Zero)
{
IntPtr result = Runtime.PyObject_Call(init, args, kw);
Runtime.XDecref(init);

if (result == IntPtr.Zero)
{
Expand Down