When deleting the object, the destructor is called.