FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix · pythonnet/pythonnet@f5e5949 · GitHub

Repository navigation

Commit f5e5949

Browse files
committed
fix
1 parent caad22c commit f5e5949

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL