Fixed memory leak in ResourceSaveLoadMathGraphInputs test.

This commit is contained in:
Martin Felis
2024-03-22 12:25:42 +01:00
parent e687c9b613
commit 3a7f470acf
2 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ TEST_CASE("ResourceSaveLoadMathGraphInputs", "[AnimGraphResource]") {
AnimGraphResource graph_resource_loaded;
graph_resource_loaded.LoadFromFile(filename);
BlendTreeResource graph_blend_tree_loaded = graph_resource_loaded.m_blend_tree_resource;
BlendTreeResource& graph_blend_tree_loaded = graph_resource_loaded.m_blend_tree_resource;
const AnimNodeResource& graph_loaded_output_node =
graph_blend_tree_loaded.m_nodes[0];