You could use a std::shared_ptr<Objects> or perhaps std::unique_ptr<Objects> instead, or use a container like boost::ptr_vector. Otherwise, you need to delete what you new.