File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+ Fix a segmentation fault in :func: `unicodedata.iter_graphemes ` when the iterator is deallocated after being cleared by the garbage collector.
Original file line number Diff line number Diff line change @@ -1913,7 +1913,7 @@ Segment_dealloc(PyObject *self)
19131913{
19141914 PyTypeObject * tp = Py_TYPE (self );
19151915 PyObject_GC_UnTrack (self );
1916- Py_DECREF (((SegmentObject * )self )-> string );
1916+ Py_XDECREF (((SegmentObject * )self )-> string );
19171917 tp -> tp_free (self );
19181918 Py_DECREF (tp );
19191919}
@@ -1989,7 +1989,7 @@ GBI_dealloc(PyObject *self)
19891989{
19901990 PyTypeObject * tp = Py_TYPE (self );
19911991 PyObject_GC_UnTrack (self );
1992- Py_DECREF (((GraphemeBreakIterator * )self )-> iter .str );
1992+ Py_XDECREF (((GraphemeBreakIterator * )self )-> iter .str );
19931993 tp -> tp_free (self );
19941994 Py_DECREF (tp );
19951995}
You can’t perform that action at this time.
0 commit comments