mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
SHERLOCK: Fix memory leak in resource manager
This commit is contained in:
parent
fda9955112
commit
a402cd3196
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user