Fixing some undefined behaviour, Issue 2277

This commit is contained in:
Ingo
2014-03-11 11:49:06 +01:00
parent 64562bd83f
commit aeeaf4de3c
14 changed files with 55 additions and 34 deletions

View File

@@ -888,7 +888,10 @@ class PALensTypeInterpreter : public IntLensInterpreter< int > {
focalLength = flt->toDouble();
}
}
return guess( lensID, focalLength, maxApertureAtFocal, liArray);
std::string retval = guess( lensID, focalLength, maxApertureAtFocal, liArray);
if(liArray)
delete [] liArray;
return retval;
}
};
PALensTypeInterpreter paLensTypeInterpreter;