| 197 | |
| 198 | |
| 199 | APyActor::~APyActor() |
| 200 | { |
| 201 | FScopePythonGIL gil; |
| 202 | |
| 203 | ue_pydelegates_cleanup(py_uobject); |
| 204 | |
| 205 | #if UEPY_MEMORY_DEBUG |
| 206 | if (py_actor_instance && py_actor_instance->ob_refcnt != 1) { |
| 207 | UE_LOG(LogPython, Error, TEXT("Inconsistent Python AActor wrapper refcnt = %d"), py_actor_instance->ob_refcnt); |
| 208 | } |
| 209 | #endif |
| 210 | Py_XDECREF(py_actor_instance); |
| 211 | |
| 212 | #if UEPY_MEMORY_DEBUG |
| 213 | UE_LOG(LogPython, Warning, TEXT("Python AActor %p (mapped to %p) wrapper XDECREF'ed"), this, py_uobject ? py_uobject->ue_object : nullptr); |
| 214 | #endif |
| 215 | |
| 216 | // this could trigger the distruction of the python/uobject mapper |
| 217 | Py_XDECREF(py_uobject); |
| 218 | } |
nothing calls this directly
no test coverage detected