utRemoveVCProcess: Fix memory leak

pull/1477/head
Turo Lamminen 2017-10-05 11:55:58 +03:00
parent 9eef4c16a8
commit 1bee5b0025
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ TEST_F( utRevmoveVCProcess, issue1266_ProcessMeshTest_NoCrash ) {
mesh->mNumVertices = 1; mesh->mNumVertices = 1;
mesh->mColors[ 0 ] = new aiColor4D[ 2 ]; mesh->mColors[ 0 ] = new aiColor4D[ 2 ];
scene->mMeshes[ 0 ] = mesh; scene->mMeshes[ 0 ] = mesh;
RemoveVCProcess *process = new RemoveVCProcess; std::unique_ptr<RemoveVCProcess> process(new RemoveVCProcess);
process->Execute( scene ); process->Execute( scene );
delete scene; delete scene;
} }