Fix some coverity issues

This commit is contained in:
heckflosse
2018-11-19 21:49:51 +01:00
parent 4eafdbf248
commit c9044485a6
4 changed files with 25 additions and 17 deletions

View File

@@ -931,7 +931,12 @@ std::shared_ptr<rtengine::LCPProfile> rtengine::LCPStore::getProfile(const Glib:
std::shared_ptr<LCPProfile> res;
if (!cache.get(filename, res)) {
res.reset(new LCPProfile(filename));
try {
res.reset(new LCPProfile(filename));
} catch (...) {
return nullptr;
}
cache.set(filename, res);
}