Does the default destructor in C++ classes automatically delete members that are not explicitly allocated in code? For example:
class C { public: C() {}
Anything that you call new for must have a corresponding delete. If you didn't call new to create an instance of something then you don't have to call delete.