8000 attempt to fix crash on shutdown of Python executable · pythonnet/pythonnet@dfb87dc · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dfb87dc

Browse files
committed
attempt to fix crash on shutdown of Python executable
1 parent 1b42732 commit dfb87dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/runtime/metatype.cs

Lines changed: 4 additions & 0 deletions
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)
0