RFR: 8279228 Leak in ScrollPaneSkin, related to touch events

Ajit Ghaisas aghaisas at openjdk.java.net
Tue Feb 22 05:22:52 UTC 2022


On Thu, 23 Dec 2021 17:43:19 GMT, Florian Kirmaier <fkirmaier at openjdk.org> wrote:

> Fixing memoryleak, related to touch events in ScrollPaneWhen touchDetected or mouseDown is true, the sbTouch animation is running, 
> and the node is removed from the Scene, then the animation will never stop, causing a memory leak.
> A simple fix is to also check, whether the Node is visible, by checking the "isTreeShowing" property.

This simple fix looks good to me.

-------------

Marked as reviewed by aghaisas (Reviewer).

PR: https://git.openjdk.java.net/jfx/pull/701


More information about the openjfx-dev mailing list