fixed destructor

actually removes the objects stored in the vector from memory now