Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e19f2c

Browse files
committed
don't dispose encoded object in case codec keeps a cache of them
1 parent 50a3822 commit 2e19f2c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/runtime/converter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ internal static IntPtr ToPython(object value, Type type)
140140
if (encoded != null) {
141141
result = encoded.Handle;
142142
Runtime.XIncref(result);
143-
encoded.Dispose();
144143
return result;
145144
}
146145
}

0 commit comments

Comments
 (0)