Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9b21a5 commit c8dee53Copy full SHA for c8dee53
1 file changed
src/runtime/importhook.cs
@@ -124,6 +124,8 @@ internal static void Shutdown()
124
125
internal static void SaveRuntimeData(RuntimeDataStorage storage)
126
{
127
+ // Increment the reference counts here so that the objects don't
128
+ // get freed in Shutdown.
129
Runtime.XIncref(py_clr_module);
130
Runtime.XIncref(root.pyHandle);
131
storage.AddValue("py_clr_module", py_clr_module);
0 commit comments