O'Reilly logo
  • LI WEI thinks this is interesting:

here! It is called a memory leak. Memory leaks happen when an object allocated with new is not ever deleted. What can happen is that if a lot of objects in your program are allocated with new and then you stop using them, your computer will run out of memory eventually due to memory leakage.

From

Cover of Learning C++ by Creating Games with UE4

Note

当你只是创建而不卸载,随着程序不断地跑,你的内存会被耗尽。