From 859922a5f06e39ac87beea1cbb9087f4a9040a05 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 3 Aug 2021 00:12:04 +0800 Subject: [PATCH] Delete the node in AnimationTreePlayer.remove_node --- scene/animation/animation_tree_player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/animation/animation_tree_player.cpp b/scene/animation/animation_tree_player.cpp index b8ba21e39fb..d35ea304c83 100644 --- a/scene/animation/animation_tree_player.cpp +++ b/scene/animation/animation_tree_player.cpp @@ -1314,6 +1314,7 @@ void AnimationTreePlayer::remove_node(const StringName &p_node) { } } + memdelete(node_map[p_node]); node_map.erase(p_node); _clear_cycle_test();