Skip to content

Commit 4b58458

Browse files
author
Christopher Doris
committed
more preserve
1 parent b399f76 commit 4b58458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/builtins.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ function pytuple_setitem(xs::Py, i, x)
898898
end
899899

900900
function pytuple_getitem(xs::Py, i)
901-
pynew(incref(errcheck(C.PyTuple_GetItem(xs, i))))
901+
Base.GC.@preserve xs pynew(incref(errcheck(C.PyTuple_GetItem(xs, i))))
902902
end
903903

904904
function pytuple_fromiter(xs)

0 commit comments

Comments
 (0)