1: // Created by Frank M. Carrano and Tim Henry.
2: // Copyright (c) 2013 __Pearson Education__. All rights reserved.
4: void goodFunction()
5: {
6: double boxValue = 4.321; // Original statement
7: GoodMemory gmObject; // Create a safe memory object
8: gmObject.fixedLeak(boxValue); // Perform the task
9: } // end goodFunction