Skip to content

Properly destroy non-initialized nodes (fixes #1080)#1082

Merged
xaviergonz merged 3 commits intomasterfrom
fix-1080
Nov 20, 2018
Merged

Properly destroy non-initialized nodes (fixes #1080)#1082
xaviergonz merged 3 commits intomasterfrom
fix-1080

Conversation

@k-g-a
Copy link
Copy Markdown
Member

@k-g-a k-g-a commented Nov 20, 2018

Fixes #1080

Based on 7d55724 (v3.7.1).
This fix also makes nodes' destruction a little bit faster as we used to walk over subtree, which internaly takes storedValue and then jumps back to it's ObjectNode.
Now we just use internal getChildren() on node which also respects non-initialized nodes (i.e. withoud storedValue).

@k-g-a
Copy link
Copy Markdown
Member Author

k-g-a commented Nov 20, 2018

BTW, shouldn't we keep master in par with latest release?
For now this PR is blocked by conflicts, meaning this bugfix can't be released untill other changes are verified.

@k-g-a k-g-a requested a review from mweststrate November 20, 2018 11:34
@k-g-a k-g-a self-assigned this Nov 20, 2018
@k-g-a
Copy link
Copy Markdown
Member Author

k-g-a commented Nov 20, 2018

@xaviergonz could you please take care of changelog? :)

Copy link
Copy Markdown
Member

@mweststrate mweststrate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. No further comments :)

@xaviergonz
Copy link
Copy Markdown
Contributor

Latest release is actually 3.8.0 😁 I'll update the change log and release a 3.8.1

@k-g-a
Copy link
Copy Markdown
Member Author

k-g-a commented Nov 20, 2018

Ops, seems like I had pulled changes just a few hours before you made 3.8! )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Destroying a model with not accessed children results in dangling nodes

4 participants