Skip to content

Commit 37e6280

Browse files
committed
Attempt to make shutdowns not crash
1 parent 958c321 commit 37e6280

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtime/Types/ClassDerived.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,9 @@ internal static void Finalize(IntPtr derived)
945945
// rare case when it's needed
946946
// matches correspdonging PyObject_GC_UnTrack
947947
// in ClassDerivedObject.tp_dealloc
948-
Runtime.PyObject_GC_Del(@ref.Steal());
948+
949+
// Deactivated for now to fix shutdown issues
950+
// Runtime.PyObject_GC_Del(@ref.Steal());
949951

950952
// must decref our type
951953
Runtime.XDecref(StolenReference.DangerousFromPointer(type.DangerousGetAddress()));

0 commit comments

Comments
 (0)