Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8319779

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.

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

                Created:
                Updated:
                Resolved: