Skip to content

Commit

Permalink
ACCESS: Plug memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed May 15, 2016
1 parent 33184e8 commit 20433e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/access/char.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 20433e3

Please sign in to comment.