This content has been marked as final. Show 2 replies
Ok, I figured, I could just override dispose() und there call unbind().
But, what if I don't have the possibility to call dispose() explicitly, like in a ListView's CellFactory's, when I don't know when something is diposed. (usually I used WeakChangeListener for that case, but here?)
From the doc:
All bindings in our implementation use instances of WeakInvalidationListener, which means usually a binding does not need to be disposed. But if you plan to use your application in environments that do not support WeakReferences you have to dispose unused Bindings to avoid memory leaks.
Doesn't that mean, that it should be garbage collected?
But in reality it isn't.