O'Reilly logo
  • Joseph Rossi thinks this is interesting:

Spreadsheet::~Spreadsheet() { for (int i = 0; i < mWidth; i++) { delete [] mCells[i]; } delete [] mCells; mCells = nullptr; }

From

Cover of Professional C++, Second Edition

Note

An example destructor freeing memory