Browse Source

utRemoveVCProcess: Fix memory leak

Turo Lamminen 8 years ago
parent
commit
674fb5a46c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/unit/utRemoveVCProcess.cpp

+ 1 - 1
test/unit/utRemoveVCProcess.cpp

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