Addressed a number of memory leaks identified in unit tests by asan
This commit is contained in:
committed by
Turo Lamminen
parent
29e46e4bb8
commit
1eb7eceddf
@@ -634,7 +634,7 @@ void PretransformVertices::Execute( aiScene* pScene)
|
||||
aiNode* newRoot = new aiNode();
|
||||
newRoot->mName = pScene->mRootNode->mName;
|
||||
delete pScene->mRootNode;
|
||||
pScene->mRootNode = new aiNode();
|
||||
pScene->mRootNode = newRoot;
|
||||
|
||||
if (1 == pScene->mNumMeshes && !pScene->mNumLights && !pScene->mNumCameras)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user