MACVENTURE: Fix leak on text decoding

This commit is contained in:
Borja Lorente 2016-08-13 20:08:35 +02:00
parent d1cd77208e
commit 6f9a17199c

View File

@ -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;