Skip to content
Closed
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
Attempt to make shutdowns not crash
  • Loading branch information
filmor committed Mar 29, 2022
commit 37e628014c8f119f825ae299fb06fa19bf37aca8
4 changes: 3 additions & 1 deletion src/runtime/Types/ClassDerived.cs
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,9 @@ internal static void Finalize(IntPtr derived)
// rare case when it's needed
// matches correspdonging PyObject_GC_UnTrack
// in ClassDerivedObject.tp_dealloc
Runtime.PyObject_GC_Del(@ref.Steal());

// Deactivated for now to fix shutdown issues
// Runtime.PyObject_GC_Del(@ref.Steal());

// must decref our type
Runtime.XDecref(StolenReference.DangerousFromPointer(type.DangerousGetAddress()));
Expand Down