I have a class
class ChartLine{ protected: vector line; // points connecting the line CString name; //line name for legend
Yes, when a vector is destroyed, all the objects in the vector are destroyed. From the looks of things, your code should work as-is (though assuming the CString is the MFC one, some older versions of it had some memory leaks...)
CString