summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
diff options
context:
space:
mode:
authorRindbee <idleman@yeah.net>2023-02-27 16:16:51 +0800
committerRindbee <idleman@yeah.net>2023-05-11 08:57:39 +0800
commit1eb250e17d3cd1c6727519e4aebff479374a420c (patch)
tree46aec1c28a0c68cde772ebf961c064f5f06e5ca4 /modules/gdscript/gdscript_analyzer.cpp
parentc80a2b4fe99dcd0bba6fc24ed2748b1474b24448 (diff)
downloadredot-engine-1eb250e17d3cd1c6727519e4aebff479374a420c.tar.gz
Avoid crash when adjusting a node tree that is not in the tree
When node tree `A` is not in the tree, `remove_child(B)` will not automatically clean up the owners of `B` and `B`'s child nodes. This is convenient for implementing operations like `replace_by()`, but may have hidden dangers when manipulating the rest of the tree `A`. This commit makes it safe to manipulate the rest of `A` after freeing `B`.
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
0 files changed, 0 insertions, 0 deletions