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 14f96a8 commit 85013d7Copy full SHA for 85013d7
Modules/unicodedata.c
@@ -1885,9 +1885,11 @@ typedef struct {
1885
static void
1886
Segment_dealloc(PyObject *self)
1887
{
1888
+ PyTypeObject *tp = Py_TYPE(self);
1889
PyObject_GC_UnTrack(self);
1890
Py_DECREF(((SegmentObject *)self)->string);
- PyObject_GC_Del(self);
1891
+ tp->tp_free(self);
1892
+ Py_DECREF(tp);
1893
}
1894
1895
static int
@@ -1959,9 +1961,11 @@ typedef struct {
1959
1961
1960
1962
GBI_dealloc(PyObject *self)
1963
1964
1965
1966
Py_DECREF(((GraphemeBreakIterator *)self)->iter.str);
1967
1968
1969
1970
1971
0 commit comments