If the class is inherit from engine, you’d better use release, not use delete.
Because other class may retain this object.
You can run the function on Xcode, it can detect memory-leak.
If the class is inherit from engine, you’d better use release, not use delete.
Because other class may retain this object.
You can run the program on Xcode, it can detect memory-leak.