We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 707ef36 commit d0d7616Copy full SHA for d0d7616
src/runtime/intern.cs
@@ -42,9 +42,10 @@ public static void Initialize()
42
43
public static void Shutdown()
44
{
45
- foreach (var ptr in _intern2strings.Keys)
+ foreach (var entry in _intern2strings)
46
47
- Runtime.XDecref(ptr);
+ Runtime.XDecref(entry.Key);
48
+ typeof(PyIdentifier).GetField(entry.Value).SetValue(null, IntPtr.Zero);
49
}
50
_string2interns = null;
51
_intern2strings = null;
0 commit comments