Fixed: Correct memory leak found by cppcheck

pull/597/head
Richard 2015-07-01 20:43:49 -06:00
parent 4619625b84
commit 67cb86d166
1 changed files with 2 additions and 1 deletions

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;
}