We start with a call to the destructor for the previous pointer.
// *************************************** //
// destructor for CHAR_DLLIST class //
// *************************************** //
CHAR_DLLIST::~CHAR_DLLIST()
{
if(head!=NULL){
delete head;
}
}