SystemMenu: memory leak due to listener never being removed

XMLWordPrintable

        Apart from the memory leak being addressed in https://bugs.openjdk.org/browse/JDK-8318841, there is another issue when using SystemMenu: when an application loses focus, the SystemMenu is removed. When it gets focus again, the SystemMenu is "back".
        However, the menu's that are part of the old SystemMenuBar are still referenced inside a listener created inside `GlassSystemMenu.insertMenu`which is never removed.

              Assignee:
              Johan Vos
              Reporter:
              Johan Vos
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: