Problem: 1615906

Title: Potential memory leak when disposing windows

Received: Dec 30 1996 2:06PM


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 in UWindow.cp TWindow::ReadFields now respect the fWMgrWindow and doesn't orphan it if someone has created a window with their own desired WindowRef.