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

Method ~APyCharacter

Source/UnrealEnginePython/Public/PyCharacter.cpp:362–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360
361
362APyCharacter::~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}

Callers

nothing calls this directly

Calls 1

ue_pydelegates_cleanupFunction · 0.85

Tested by

no test coverage detected