This reverts commit 662dd294563ce86980c640ad67e3d460a72c9cb9. The root issue was fixed by the commit f554237b8ef6c60df651ac17eb0ef0c095cef185.
This commit is contained in:
parent
99a0d7e5b3
commit
c336f1c312
@ -244,7 +244,7 @@ static void
|
|||||||
method_dealloc(PyObject *self)
|
method_dealloc(PyObject *self)
|
||||||
{
|
{
|
||||||
PyMethodObject *im = _PyMethodObject_CAST(self);
|
PyMethodObject *im = _PyMethodObject_CAST(self);
|
||||||
PyObject_GC_UnTrack(im);
|
_PyObject_GC_UNTRACK(im);
|
||||||
if (im->im_weakreflist != NULL)
|
if (im->im_weakreflist != NULL)
|
||||||
PyObject_ClearWeakRefs((PyObject *)im);
|
PyObject_ClearWeakRefs((PyObject *)im);
|
||||||
Py_DECREF(im->im_func);
|
Py_DECREF(im->im_func);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user