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
There is always ONLY ONE way to destroy an object, and that is by its destructor (in contrast, you can construct objects in several ways). STL containers were designed specifically to avoid such micromanagement of memory within data structures. If you are having to explicitly allocate or free memory in an STL container, you're doing it wrong.