I have been teaching myself c++ since UE4 came out and I feel I am now somewhat proficient in that I can now compile code successfully and it usually does what I expect it to. However, I now suspect I have one or more memory leaks in my functions that are called from tick. I let my game run for about 1 minute and then Unreal 4 dies. However, there in task manager the memory used by UE4 barely increases, only does spurts every now and then, and also decreases at times… So I am asking if this sounds like a memory leak and if there are any tips for detecting these besides commenting and uncommenting lines one by one?
I am also wondering in what instances delete ] pointer is appropriate.
If a function accepts a pointer as a parameter, should that function also delete that pointer?