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 f413b87 commit a4665b5Copy full SHA for a4665b5
Modules/unicodedata.c
@@ -1875,9 +1875,11 @@ typedef struct {
1875
static void
1876
Segment_dealloc(PyObject *self)
1877
{
1878
+ PyTypeObject *tp = Py_TYPE(self);
1879
PyObject_GC_UnTrack(self);
1880
Py_DECREF(((SegmentObject *)self)->string);
- PyObject_GC_Del(self);
1881
+ tp->tp_free(self);
1882
+ Py_DECREF(tp);
1883
}
1884
1885
static int
@@ -1949,9 +1951,11 @@ typedef struct {
1949
1951
1950
1952
GBI_dealloc(PyObject *self)
1953
1954
1955
1956
Py_DECREF(((GraphemeBreakIterator *)self)->iter.str);
1957
1958
1959
1960
1961
0 commit comments