MCPcopy Create free account
hub / github.com/20tab/UnrealEnginePython / ~APyActor

Method ~APyActor

Source/UnrealEnginePython/Public/PyActor.cpp:199–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197
198
199APyActor::~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}

Callers

nothing calls this directly

Calls 1

ue_pydelegates_cleanupFunction · 0.85

Tested by

no test coverage detected