if (this->buf && this->buf != INVALID_BUFFER_VALUE)
this->buf->b_python_ref = NULL;
- PyMem_DEL(self);
+ Py_DECREF(self);
}
static PyObject *
bufr = (BufferObject *)BufferNew(buf);
if (bufr == NULL)
{
- PyMem_DEL(self);
+ Py_DECREF(self);
return NULL;
}
Py_INCREF(bufr);
RangeDestructor(PyObject *self)
{
Py_DECREF(((RangeObject *)(self))->buf);
- PyMem_DEL(self);
+ Py_DECREF(self);
}
static PyObject *
if (this->win && this->win != INVALID_WINDOW_VALUE)
this->win->w_python_ref = NULL;
- PyMem_DEL(self);
+ Py_DECREF(self);
}
static int