1: // Created by Frank M. Carrano and Timothy M. Henry. 2: // Copyright (c) 2017 Pearson Education, Hoboken, New Jersey. 4: void goodFunction() 5: { 6: double boxValue = 4.321; // Original statement 7: GoodMemory gmObject; // Create a safe memory object 8: gmObject.unleakyMethod(boxValue); // Perform the task 9: } // end goodFunction