Kim Kulling 5 年之前
父节点
当前提交
1bbae19779
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      test/unit/Common/utStandardShapes.cpp

+ 2 - 1
test/unit/Common/utStandardShapes.cpp

@@ -47,10 +47,11 @@ TEST_F( utStandardShapes, testMakeMesh ) {
 
 
     // Make mesh
     // Make mesh
     const auto numIndicesPerPrimitive = 3;
     const auto numIndicesPerPrimitive = 3;
-    auto aiMeshPtr = Assimp::StandardShapes::MakeMesh(positions, numIndicesPerPrimitive);
+    aiMesh *aiMeshPtr = Assimp::StandardShapes::MakeMesh(positions, numIndicesPerPrimitive);
 
 
     // The mNumIndices member of the second face is now incorrect
     // The mNumIndices member of the second face is now incorrect
     const auto& face = aiMeshPtr->mFaces[0];
     const auto& face = aiMeshPtr->mFaces[0];
     EXPECT_EQ(face.mNumIndices, numIndicesPerPrimitive); 
     EXPECT_EQ(face.mNumIndices, numIndicesPerPrimitive); 
+    delete aiMeshPtr;
 }
 }