NANCY: Do not leak chunk stream data

This commit is contained in:
Kaloyan Chehlarski 2023-08-26 18:33:01 +03:00
parent 17f9b48b2d
commit 53e548c818

View File

@ -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) {