I've just finished fixing SQuirreL's memory leaks. It may be now for the
first time that Sessions get garbage collected. The memory panel in the
status bar now tells which Sessions are garbage collected. There are two
things I'd like to hint to:
- If you add a SessionListener to the SessionManager in a Session
dependent context, make sure that the listener is removed when the
Session is closed.
- If you use actions from ActionCollection for example in a popup menu,
be aware that these actions are global. Session dependent references to
them need to be removed when the Session is closed. For example
JPopupMenu.removeAll() must be called.