mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 13:45:25 +00:00
MACVENTURE: Fix leak on text decoding
This commit is contained in:
parent
d1cd77208e
commit
6f9a17199c
@ -43,7 +43,7 @@ TextAsset::TextAsset(MacVentureEngine *engine, ObjID objid, ObjID source, ObjID
|
||||
void TextAsset::decodeOld() {
|
||||
Common::SeekableReadStream *res = _container->getItem(_id);
|
||||
uint16 strLen = res->readUint16BE();
|
||||
Common::BitStream32BELSB stream(res);
|
||||
Common::BitStream32BELSB stream(res, true);
|
||||
char* str = new char[strLen + 1];
|
||||
bool lowercase = false;
|
||||
char c;
|
||||
|
Loading…
x
Reference in New Issue
Block a user