Crash when closing a model then starting a new session
The crash can be reproduced by
- loading a file (Cmd-o/Ctrl-o) to open a file
- closing the file (Cmd-w/Ctrl-w)
- opening a new session via the menu bar: (e.g., File → New Session → exodus)
It appears that pqCMBModelManager's Internal->ManagerProxy is set to NULL when the file is closed and then dereferenced by startNewSession().