| 11 | } |
| 12 | |
| 13 | void DecRef(PyObject* object, bool isDebug) { |
| 14 | auto noDebug = GetPyObjectPointerNoDebugInfo(isDebug, object); |
| 15 | |
| 16 | if (noDebug != nullptr && --noDebug->ob_refcnt == 0) { |
| 17 | ((PyTypeObject*)GetPyObjectPointerNoDebugInfo(isDebug, noDebug->ob_type))->tp_dealloc(object); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | void IncRef(PyObject* object) { |
| 22 | object->ob_refcnt++; |
no test coverage detected