8000 remove incref for tuple fields, as Converter.ToPython is supposed to … · pythonnet/pythonnet@e2d3333 · GitHub
[go: up one dir, main page]

Skip to content

Commit e2d3333

Browse files
committed
remove incref for tuple fields, as Converter.ToPython is supposed to return a new reference
1 parent 399ae54 commit e2d3333

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/runtime/Codecs/TupleCodecs.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public PyObject TryEncode(object value)
3636
{
3737
var item = field.GetValue(value);
3838
IntPtr pyItem = Converter.ToPython(item);
39-
Runtime.XIncref(pyItem);
4039
Runtime.PyTuple_SetItem(tuple, fieldIndex, pyItem);
4140
fieldIndex++;
4241
}

0 commit comments

Comments
 (0)
0