◐ Shell
reader mode source ↗
Skip to content
Merged
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
4 changes: 2 additions & 2 deletions src/runtime/classderived.cs
Original file line number Diff line number Diff line change
@@ -857,7 +857,7 @@ public static void Finalize(IPythonDerivedType obj)
{
if (0 == Runtime.Py_IsInitialized() || Runtime.IsFinalizing)
{
self.gcHandle.Free();
return;
}
}
Expand All @@ -872,7 +872,7 @@ public static void Finalize(IPythonDerivedType obj)
// If python's been terminated then just free the gchandle.
if (0 == Runtime.Py_IsInitialized() || Runtime.IsFinalizing)
{
self.gcHandle.Free();
return;
}

Toggle all file notes Toggle all file annotations