We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1330fe0 commit 3a8a2e3Copy full SHA for 3a8a2e3
src/BufferType.cc
@@ -131,6 +131,8 @@ static PyBytesProxyHandler pyBytesProxyHandler;
131
132
133
JSObject *BufferType::toJsTypedArray(JSContext *cx, PyObject *pyObject) {
134
+ Py_INCREF(pyObject);
135
+
136
// Get the pyObject's underlying buffer pointer and size
137
Py_buffer *view = new Py_buffer{};
138
bool immutable = false;
0 commit comments