mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 19:32:11 +00:00
GRIM: Check for success in loading material.
Fixes COVERITY: 1433524
This commit is contained in:
parent
18a34fc9be
commit
1eb48aa90a
@ -454,6 +454,8 @@ Material *ResourceLoader::loadMaterial(const Common::String &filename, CMap *c,
|
||||
error("Could not find material %s", filename.c_str());
|
||||
}
|
||||
}
|
||||
if (!stream)
|
||||
error("Couldn't open %s", fname.c_str());
|
||||
|
||||
Material *result = new Material(fname, stream, c, clamp);
|
||||
delete stream;
|
||||
|
Loading…
Reference in New Issue
Block a user