There is only one way: delete. It doesn't matter whether a pointer to an object created with new is stored in a vector, in an array, or in a single variable, you need to use delete. You might want to take this approach:What is the best way to release memory that was used in making an object with new?
1) Define a destructor for your class. Have your destructor output the message: "destructor called".
2) Practice deleting a pointer that is stored in a single variable.
3) Practice deleting an array of pointers. Look at the number of messages you get from your destructor, and check if you get the right number of messages.
4) Try using delete on the pointers stored in your vector.