X Tutup
Skip to content

Commit f5e5949

Browse files
committed
fix
1 parent caad22c commit f5e5949

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/runtime/PythonTypes/PyTuple.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ public static PyTuple Create(params object[] args)
7373
break;
7474
}
7575
}
76-
PyTuple result = new PyTuple(list.ToArray());
77-
list.ForEach(t => t?.Dispose());
78-
return result;
76+
return new PyTuple(FromArray(list.ToArray()));
7977
}
8078

8179
private static BorrowedReference FromObject(PyObject o)

0 commit comments

Comments
 (0)
X Tutup