| 3582 | } |
| 3583 | |
| 3584 | static void |
| 3585 | encoder_dealloc(PyObject *self) |
| 3586 | { |
| 3587 | /* bpo-31095: UnTrack is needed before calling any callbacks */ |
| 3588 | #if PY_VERSION_HEX >= 0x030D0000 |
| 3589 | PyTypeObject *tp = Py_TYPE(self); |
| 3590 | #endif |
| 3591 | PyObject_GC_UnTrack(self); |
| 3592 | encoder_clear(self); |
| 3593 | Py_TYPE(self)->tp_free(self); |
| 3594 | #if PY_VERSION_HEX >= 0x030D0000 |
| 3595 | Py_DECREF(tp); |
| 3596 | #endif |
| 3597 | } |
| 3598 | |
| 3599 | static int |
| 3600 | encoder_traverse(PyObject *self, visitproc visit, void *arg) |
nothing calls this directly
no test coverage detected
searching dependent graphs…