Problem: 1353199

Title: Potential memory leak when disposing windows

Received: May 25 1996 6:32PM


MacApp purports to allow the storage for the Window Manager Window record to be allocated in the MacApp object heap. This was not being correctly implemented in TWindow::ReadFields, so template based windows still had their storage supplied by the toolbox out of the toolbox heap. In addition, if the window had been allocated in the object heap (Via NewToolBoxWindow) then the window record is never deleted when the window is freed.
Fix:

Fixed.