mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 21:54:15 +00:00
NANCY: Do not leak chunk stream data
This commit is contained in:
parent
17f9b48b2d
commit
53e548c818
@ -390,6 +390,8 @@ MENU::MENU(Common::SeekableReadStream *chunkStream) {
|
||||
readRectArray(*chunkStream, _buttonDisabledSrcs, numOptions);
|
||||
readRectArray(*chunkStream, _buttonHighlightSrcs, numOptions);
|
||||
}
|
||||
|
||||
delete chunkStream;
|
||||
}
|
||||
|
||||
SET::SET(Common::SeekableReadStream *chunkStream) {
|
||||
@ -425,6 +427,8 @@ SET::SET(Common::SeekableReadStream *chunkStream) {
|
||||
for (uint i = 0; i < 3; ++i) {
|
||||
_sounds[i].readMenu(*chunkStream);
|
||||
}
|
||||
|
||||
delete chunkStream;
|
||||
}
|
||||
|
||||
HINT::HINT(Common::SeekableReadStream *chunkStream) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user