| 360 | |
| 361 | |
| 362 | APyCharacter::~APyCharacter() |
| 363 | { |
| 364 | FScopePythonGIL gil; |
| 365 | |
| 366 | ue_pydelegates_cleanup(py_uobject); |
| 367 | |
| 368 | #if UEPY_MEMORY_DEBUG |
| 369 | if (py_character_instance && py_character_instance->ob_refcnt != 1) { |
| 370 | UE_LOG(LogPython, Error, TEXT("Inconsistent Python ACharacter wrapper refcnt = %d"), py_character_instance->ob_refcnt); |
| 371 | } |
| 372 | #endif |
| 373 | Py_XDECREF(py_character_instance); |
| 374 | |
| 375 | #if UEPY_MEMORY_DEBUG |
| 376 | UE_LOG(LogPython, Warning, TEXT("Python ACharacter (mapped to %p) wrapper XDECREF'ed"), py_uobject ? py_uobject->ue_object : nullptr); |
| 377 | #endif |
| 378 | |
| 379 | // this could trigger the distruction of the python/uobject mapper |
| 380 | Py_XDECREF(py_uobject); |
| 381 | } |
nothing calls this directly
no test coverage detected