| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1885,9 +1885,11 @@ typedef struct { | |||
| 1885 | 1885 | static void | |
| 1886 | 1886 | Segment_dealloc(PyObject *self) | |
| 1887 | 1887 | { | |
| 1888 | + PyTypeObject *tp = Py_TYPE(self); | ||
| 1888 | 1889 | PyObject_GC_UnTrack(self); | |
| 1889 | 1890 | Py_DECREF(((SegmentObject *)self)->string); | |
| 1890 | - PyObject_GC_Del(self); | ||
| 1891 | + tp->tp_free(self); | ||
| 1892 | + Py_DECREF(tp); | ||
| 1891 | 1893 | } | |
| 1892 | 1894 | ||
| 1893 | 1895 | static int | |
@@ -1959,9 +1961,11 @@ typedef struct { | |||
| 1959 | 1961 | static void | |
| 1960 | 1962 | GBI_dealloc(PyObject *self) | |
| 1961 | 1963 | { | |
| 1964 | + PyTypeObject *tp = Py_TYPE(self); | ||
| 1962 | 1965 | PyObject_GC_UnTrack(self); | |
| 1963 | 1966 | Py_DECREF(((GraphemeBreakIterator *)self)->iter.str); | |
| 1964 | - PyObject_GC_Del(self); | ||
| 1967 | + tp->tp_free(self); | ||
| 1968 | + Py_DECREF(tp); | ||
| 1965 | 1969 | } | |
| 1966 | 1970 | ||
| 1967 | 1971 | static int | |
| Back | FazBrowse Home | New Git URL |
0 commit comments