Backporting fix from rev #39918: Memory leak when thumbnail header
couldn't be skipped. svn-id: r39945
This commit is contained in:
parent
41bd7cd94b
commit
bbd423b82a
1 changed files with 3 additions and 1 deletions
|
@ -680,8 +680,10 @@ bool ScummEngine::loadInfosFromSlot(const char *target, int slot, InfoStuff *stu
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!Graphics::skipThumbnailHeader(*in))
|
||||
if (!Graphics::skipThumbnailHeader(*in)) {
|
||||
delete in;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!loadInfos(in, stuff)) {
|
||||
delete in;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue