Crash after exactly 1 minute due to pointer

Hello,

first up the code:

MyAbstractClass* myName = nullptr;

and later

myName = NewObject <AActorThatImplementsMyAbstractClass>();

If I include the latter line my game crashes after exactly one minute, if I comment it out nothing happens.
I assume this is an issue with garbage collection, or maybe I am misusing NewObject?

Is myName a UPROPERTY? Otherwise the memory system will not manage it properly.