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

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