I’ve got a TArray which I’m populating with instances of custom class like this:
I’ve heard the rule is that for every new you must have a delete.
If I just pop the last element from the TArray like this:
It doesn’t call the destructor in the object which tells me that it’s only the pointer in the TArray being deleted when I need the object to be deleted from memory too.
my planetOctave class is not extended from a UE4 class so it doesn’t qualify for garbage collection, what’s the right way to clean up after this little fellow?