Seeing as OP has commented multiple times they are not very strong with programming, this may be pointing them to a completely different direction, especially when I am under the impression that if they figure out this problem, they will learn more about memory management than they will from the moving to the new C++ standard.
You are totally right! The hard way is sometimes better (that's why we c++ nerds are often better programmers ;)

Find content
Not Telling