mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
Revert "KYRA: Plug memory leak"
This reverts commit 9909cc615d
.
This will likely cause invalid memory reads because it frees the last output
buffer which is used to keep files in memory. There is a possible memory leak
here, when the input data is not well formed. However, fixing this takes some
more effort than the solution in the reverted commit.
This commit is contained in:
parent
3664caa29c
commit
18193d170e
@ -1180,8 +1180,6 @@ Common::Archive *InstallerLoader::load(Resource *owner, const Common::String &fi
|
||||
delete tmpFile;
|
||||
tmpFile = 0;
|
||||
}
|
||||
delete[] outbuffer;
|
||||
outbuffer = 0;
|
||||
}
|
||||
|
||||
archives.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user