Kaydet (Commit) 8401eec7 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Properly INCREF reference in Py_buffer.

üst 241b8345
......@@ -2516,6 +2516,8 @@ static int CData_NewGetBuffer(PyObject *_self, Py_buffer *view, int flags)
if (view == NULL) return 0;
view->buf = self->b_ptr;
view->obj = _self;
Py_INCREF(_self);
view->len = self->b_size;
view->readonly = 0;
/* use default format character if not set */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment