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
Same self.repr null check in ConstructorBinding.tp_dealloc
  • Loading branch information
abessen committed Oct 20, 2016
commit d43d846cd957ed8561fc781fa34df183270da6c1
3 changes: 2 additions & 1 deletion src/runtime/constructorbinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ public static IntPtr tp_repr(IntPtr ob)
public static new void tp_dealloc(IntPtr ob)
{
ConstructorBinding self = (ConstructorBinding)GetManagedObject(ob);
Runtime.Decref(self.repr);
if (self.repr != IntPtr.Zero)
Runtime.Decref(self.repr);
Runtime.Decref(self.pyTypeHndl);
ExtensionType.FinalizeObject(self);
}
Expand Down