Memory Management of local UObject * pointer

Hi. To be sure that your local object is never GC’ed while calling engine functions that can trigger GC you can use FGCObjectScopeGuard:

{
    FGCObjectScopeGuard(UObject* GladOS = NewObject<...>(...));
    GladOS->SpawnCell();
    RunGC();
    GladOS->IsStillAlive();   // Object will not be removed by GC
}