Reset references to enable GC

This commit is contained in:
Christoph Atteneder 2021-02-01 10:52:21 +01:00
parent 91e75641eb
commit 9c31abfd36
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -576,6 +576,8 @@ public class PendingTradesView extends ActivatableViewAndModel<VBox, PendingTrad
setGraphic(null);
if (trade != null && listener != null) {
trade.stateProperty().removeListener(listener);
trade = null;
listener = null;
}
}
}