This is the second part of
PIVOT-861, moved here (and so even the related test case).
For a full solution of this maybe we need some incompatible change (so in this case it will be moved to 2.1), and maybe even some changes to the test case.
- relates to
PIVOT-861 Memory leak: Window icon ImageListenerList retains reference to closed windows, preventing garbage collection