SHERLOCK: Fix memory leak in resource manager

This commit is contained in:
Paul Gilbert 2015-08-19 22:17:11 -04:00
parent fda9955112
commit a402cd3196

View File

@ -209,6 +209,8 @@ Common::SeekableReadStream *Resources::load(const Common::String &filename, cons
if (!libIndex.contains(filename)) {
if (!suppressErrors)
error("Could not find resource - %s", filename.c_str());
delete libStream;
return nullptr;
}