Destructor in list

Why do we need a destructor that delete all elments in the implementation of a list?

If you have created something with new you need to destroy it with delete otherwise you'll have a memory leak.
thank you!!
Topic archived. No new replies allowed.