Fixed: Correct memory leak found by cppcheck
parent
4619625b84
commit
67cb86d166
|
@ -484,6 +484,7 @@ aiReturn aiMaterial::AddBinaryProperty (const void* pInput,
|
|||
try {
|
||||
ppTemp = new aiMaterialProperty*[mNumAllocated];
|
||||
} catch (std::bad_alloc&) {
|
||||
delete pcNew;
|
||||
return AI_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue