Skip to content

Commit

Permalink
Fix JRebirth#156 The released-listener attached to the rootNode paren…
Browse files Browse the repository at this point in the history
…t property is never removed
  • Loading branch information
vianney committed Jul 28, 2015
1 parent 3e92a6e commit 512db65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Expand Up @@ -149,6 +149,7 @@ public void prepare() throws CoreException {
public void changed(final ObservableValue<? extends Node> observable, final Node oldValue, final Node newValue) {
if (newValue == null) {
getModel().release();
getRootNode().parentProperty().removeListener(this);
}
}

Expand Down
Expand Up @@ -119,6 +119,7 @@ protected final void initInternalModel() throws CoreException {
public void changed(final ObservableValue<? extends Node> observable, final Node oldValue, final Node newValue) {
if (newValue == null) {
release();
getRootNode().parentProperty().removeListener(this);
}
}

Expand Down
Expand Up @@ -72,6 +72,7 @@ protected void initInternalModel() throws CoreException {
public void changed(final ObservableValue<? extends Node> observable, final Node oldValue, final Node newValue) {
if (newValue == null) {
release();
getRootNode().parentProperty().removeListener(this);
}
}

Expand Down

0 comments on commit 512db65

Please sign in to comment.