Skip to content

Commit

Permalink
Bugfix : Replaced some new[]s with std::vectors ( merged from GitHub,…
Browse files Browse the repository at this point in the history
… thanks to Riku Palomäki ).

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1214 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
  • Loading branch information
kimmi committed Mar 20, 2012
1 parent b724ac5 commit 79f255b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/ASELoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector<aiMesh*>& avOutMesh

// copy vertex bones
if (!mesh.mBones.empty() && !mesh.mBoneVertices.empty()) {
std::vector<aiVertexWeight>* avBonesOut = new std::vector<aiVertexWeight>[mesh.mBones.size()];
std::vector<std::vector<aiVertexWeight> > avBonesOut( mesh.mBones.size() );

// find all vertex weights for this bone
unsigned int quak = 0;
Expand Down Expand Up @@ -1188,9 +1188,6 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector<aiMesh*>& avOutMesh
++pcBone;
}
}

// delete allocated storage
delete[] avBonesOut;
}
}
}
Expand Down

0 comments on commit 79f255b

Please sign in to comment.