diff options
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r-- | engines/parallaction/parallaction.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index 24faab7da3..490e2115de 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -696,24 +696,26 @@ void Parallaction::changeCursor(int32 index) { void Parallaction::freeCharacter() { - _vm->_gfx->freeCnv(_vm->_char._normalFrames); - if (_vm->_char._normalFrames) delete _vm->_char._normalFrames; + if (_vm->_char._normalFrames) + delete _vm->_char._normalFrames; if (!IS_DUMMY_CHARACTER(_vm->_characterName)) { - _vm->_gfx->freeCnv(_vm->_char._miniFrames); - if (_vm->_char._miniFrames) delete _vm->_char._miniFrames; + if (_vm->_char._miniFrames) + delete _vm->_char._miniFrames; - if (_objectsNames) delete _objectsNames; + if (_objectsNames) + delete _objectsNames; _objectsNames = NULL; - _vm->_gfx->freeCnv(_vm->_char._talk); - if (_vm->_char._talk) delete _vm->_char._talk; + if (_vm->_char._talk) + delete _vm->_char._talk; _vm->_gfx->freeStaticCnv(_vm->_char._head); - if (_vm->_char._head) delete _vm->_char._head; + if (_vm->_char._head) + delete _vm->_char._head; - _vm->_gfx->freeCnv(_vm->_char._objs); - if (_vm->_char._objs) delete _vm->_char._objs; + if (_vm->_char._objs) + delete _vm->_char._objs; } return; |