Fix: memory leak in gltf2 importer (fixes #2661)

pull/2667/head
Theak 2019-09-22 10:12:19 +01:00
parent aeecc17482
commit 720ac4846b
1 changed files with 0 additions and 1 deletions

View File

@ -444,7 +444,6 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r)
"\" does not match the vertex count");
continue;
}
aim->mColors[c] = new aiColor4D[attr.color[c]->count];
attr.color[c]->ExtractData(aim->mColors[c]);
}
for (size_t tc = 0; tc < attr.texcoord.size() && tc < AI_MAX_NUMBER_OF_TEXTURECOORDS; ++tc) {