ACCESS: Plug memory leak

This commit is contained in:
Eugene Sandulenko 2016-05-15 12:29:35 +02:00
parent 33184e822d
commit 20433e3476

View file

@ -44,7 +44,7 @@ CharEntry::CharEntry(const byte *data, AccessEngine *vm) {
if (vm->getGameID() == GType_MartianMemorandum) {
int lastColor = s.readUint16LE();
_numColors = lastColor - _startColor;
} else
} else
_numColors = s.readUint16LE();
// Load cells
@ -131,6 +131,7 @@ void CharManager::loadChar(int charId) {
if (ce._animFile._fileNum != -1) {
Resource *data = _vm->_files->loadFile(ce._animFile);
_vm->_animation->loadAnimations(data);
delete data;
}
// Load script data