Fixed: Correct memory leak found by cppcheck

This commit is contained in:
Richard
2015-07-01 20:43:49 -06:00
parent 4619625b84
commit 67cb86d166

View File

@@ -482,8 +482,9 @@ aiReturn aiMaterial::AddBinaryProperty (const void* pInput,
aiMaterialProperty** ppTemp;
try {
ppTemp = new aiMaterialProperty*[mNumAllocated];
ppTemp = new aiMaterialProperty*[mNumAllocated];
} catch (std::bad_alloc&) {
delete pcNew;
return AI_OUTOFMEMORY;
}