Merge pull request #3235 from rmstyrczula/master
Fix double free caused in FindInvalidDataProcesspull/3232/head^2
commit
f940a37be6
|
@ -124,7 +124,7 @@ void FindInvalidDataProcess::Execute(aiScene *pScene) {
|
||||||
if (2 == result) {
|
if (2 == result) {
|
||||||
// remove this mesh
|
// remove this mesh
|
||||||
delete pScene->mMeshes[a];
|
delete pScene->mMeshes[a];
|
||||||
AI_DEBUG_INVALIDATE_PTR(pScene->mMeshes[a]);
|
pScene->mMeshes[a] = NULL;
|
||||||
|
|
||||||
meshMapping[a] = UINT_MAX;
|
meshMapping[a] = UINT_MAX;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue