ProgressBarSkin: adds strong listener to control's width property

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jfx14
    • Affects Version/s: jfx11
    • Component/s: javafx

      see code in its contructor:

          public ProgressBarSkin(ProgressBar control) {
              super(control);
              ...
              control.widthProperty().addListener(observable -> updateProgress());
              ...
          }

      may lead to memory leaks if skin is updated. Options to fix are using a weakInvalidationListener or keep a reference to the strong which is removed in dispose or switch to using changeListener registered via skin's changeListener api

            Assignee:
            Jeanette Winzenburg
            Reporter:
            Jeanette Winzenburg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: