From e290448fe3295b43f06f23eacb7a07cdc3d064a8 Mon Sep 17 00:00:00 2001 From: Abdulrahman Al Zeidi Date: Mon, 27 Feb 2023 02:44:23 +0000 Subject: Fix glTF mesh importer not freeing nodes correctly on import (cherry picked from commit 5e0641ea9af03491889d89f9bdac0785e5bc3158) --- .../gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gltf') diff --git a/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp b/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp index 388c3ec740..2af716b867 100644 --- a/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp +++ b/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp @@ -70,7 +70,7 @@ Error GLTFDocumentExtensionConvertImporterMesh::import_post(Ref p_sta } queue.pop_front(); } - while (!queue.is_empty()) { + while (!delete_queue.is_empty()) { List::Element *E = delete_queue.front(); Node *node = E->get(); memdelete(node); -- cgit v1.2.3