FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

attempt to fix crash on shutdown of Python executable · pythonnet/pythonnet@3157cf5 · GitHub

Commit 3157cf5

Browse files
committed
attempt to fix crash on shutdown of Python executable
1 parent 1114a03 commit 3157cf5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL