Merge pull request #3235 from rmstyrczula/master

Fix double free caused in FindInvalidDataProcess
pull/3232/head^2
Kim Kulling 2020-05-20 10:20:00 +02:00 committed by GitHub
commit f940a37be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ void FindInvalidDataProcess::Execute(aiScene *pScene) {
if (2 == result) {
// remove this mesh
delete pScene->mMeshes[a];
AI_DEBUG_INVALIDATE_PTR(pScene->mMeshes[a]);
pScene->mMeshes[a] = NULL;
meshMapping[a] = UINT_MAX;
continue;