Skip to content

Commit ec8b69f

Browse files
committed
attempt to fix crash on shutdown of Python executable
1 parent 2596cdf commit ec8b69f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/runtime/metatype.cs

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public static PyType Initialize()
3737

3838
public static void Release()
3939
{
40+
if (Runtime.HostedInPython)
41+
{
42+
_metaSlotsHodler.ResetSlots();
43+
}
4044
PyCLRMetaType.Dispose();
4145
}
4246

0 commit comments

Comments
 (0)