I have a class containing a vector member variable. I know that vectors stored on the stack will be cleaned up (i.e. memory free\'d) when they go out of scope, but I\'m not
The vector is cleaned up for you already! When a class gets destructed all of it's members destructors are also called. In this case v
's destructor is called, which cleans up whatever it allocated.
Non-static members' dtors are called when you reach the closing }
of the destructor in the reverse order they were declared in. Then your base class destructor is called, if present.