8000 Netcoreapp 2.0 specific bugfix. · pythonnet/pythonnet@e0925a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0925a0

Browse files
author
dse
committed
Netcoreapp 2.0 specific bugfix.
1 parent db43410 commit e0925a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/runtime/importhook.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ internal static void Shutdown()
7575
if (Runtime.Py_IsInitialized() != 0)
7676
{
7777
Runtime.XDecref(py_clr_module);
78+
// TODO: Very strange behavior under CoreCLR. System.ExecutionEngineException (Crash)
79+
#if !NETCOREAPP
7880
Runtime.XDecref(root.pyHandle);
81+
#endif
7982
Runtime.XDecref(py_import);
8083
}
8184
}

0 commit comments

Comments
 (0)
0