Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove incref for tuple fields, as Converter.ToPython is supposed to …
…return a new reference
  • Loading branch information
lostmsu committed Feb 23, 2020
commit e2d333361c036243cec3c9aecab514d3888d8efa
1 change: 0 additions & 1 deletion src/runtime/Codecs/TupleCodecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public PyObject TryEncode(object value)
{
var item = field.GetValue(value);
IntPtr pyItem = Converter.ToPython(item);
Runtime.XIncref(pyItem);
Runtime.PyTuple_SetItem(tuple, fieldIndex, pyItem);
fieldIndex++;
}
Expand Down