Fix memleak.

pull/2069/head
kkulling 2018-07-25 15:40:19 +02:00
parent 9a6b07e522
commit 7e67553311
1 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,8 @@ TEST_F(MaterialSystemTest, testDefaultMaterialAccess) {
aiMaterial *mat = aiCreateAndRegisterDefaultMaterial();
EXPECT_NE(nullptr, mat);
aiReleaseDefaultMaterial();
delete mat;
}
// ------------------------------------------------------------------------------------------------
@ -144,4 +146,6 @@ TEST_F(MaterialSystemTest, testMaterialNameAccess) {
aiString name = mat->GetName();
const int retValue(strncmp(name.C_Str(), AI_DEFAULT_MATERIAL_NAME, name.length));
EXPECT_EQ(0, retValue );
delete mat;
}