Introduced bug when added destructor to stack elements. The destructor will recursively delete the entire linked list unless the elements next pointer is set to NULL first. Comment inserted into code to make this clear since it is not exactly transparent in the code.
Introduced bug when added destructor to stack elements. The destructor will recursively delete the entire linked list unless the elements next pointer is set to NULL first. Comment inserted into code to make this clear since it is not exactly transparent in the code.