From 79f255bc40e14a5b734875fee0761d39864563a9 Mon Sep 17 00:00:00 2001 From: kimmi Date: Tue, 20 Mar 2012 20:35:21 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix=20:=20Replaced=20some=20new[]s=20with=20?= =?UTF-8?q?std::vectors=20(=20merged=20from=20GitHub,=20thanks=20to=20Riku?= =?UTF-8?q?=20Palom=C3=A4ki=20).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1214 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/ASELoader.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/ASELoader.cpp b/code/ASELoader.cpp index 0f04d851e..998571089 100644 --- a/code/ASELoader.cpp +++ b/code/ASELoader.cpp @@ -1152,7 +1152,7 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector& avOutMesh // copy vertex bones if (!mesh.mBones.empty() && !mesh.mBoneVertices.empty()) { - std::vector* avBonesOut = new std::vector[mesh.mBones.size()]; + std::vector > avBonesOut( mesh.mBones.size() ); // find all vertex weights for this bone unsigned int quak = 0; @@ -1188,9 +1188,6 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector& avOutMesh ++pcBone; } } - - // delete allocated storage - delete[] avBonesOut; } } }