Browse Source

Fixed mValues allocated twice.

mValues is already allocated in aiMetadata::Alloc().
Marc-Antoine Lortie 5 years ago
parent
commit
ede860173e
1 changed files with 0 additions and 1 deletions
  1. 0 1
      code/Common/SceneCombiner.cpp

+ 0 - 1
code/Common/SceneCombiner.cpp

@@ -1312,7 +1312,6 @@ void SceneCombiner::Copy(aiMetadata** _dest, const aiMetadata* src) {
     aiMetadata* dest = *_dest = aiMetadata::Alloc( src->mNumProperties );
     std::copy(src->mKeys, src->mKeys + src->mNumProperties, dest->mKeys);
 
-    dest->mValues = new aiMetadataEntry[src->mNumProperties];
     for (unsigned int i = 0; i < src->mNumProperties; ++i) {
         aiMetadataEntry& in = src->mValues[i];
         aiMetadataEntry& out = dest->mValues[i];