diff options
author | Travis Howell | 2006-01-27 06:05:03 +0000 |
---|---|---|
committer | Travis Howell | 2006-01-27 06:05:03 +0000 |
commit | 548961ecc35374da59d5d5f5397c6c5159026e12 (patch) | |
tree | 0d5c0f957da60915f1e0aa9bc86a2df3f7c42363 /scumm/sprite_he.cpp | |
parent | 58dcb8436fc6498e6886ee9d65f57feda8db8148 (diff) | |
download | scummvm-rg350-548961ecc35374da59d5d5f5397c6c5159026e12.tar.gz scummvm-rg350-548961ecc35374da59d5d5f5397c6c5159026e12.tar.bz2 scummvm-rg350-548961ecc35374da59d5d5f5397c6c5159026e12.zip |
A
Fix memory leaks in HE games on exit.
svn-id: r20208
Diffstat (limited to 'scumm/sprite_he.cpp')
-rw-r--r-- | scumm/sprite_he.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/sprite_he.cpp b/scumm/sprite_he.cpp index 923c7556c4..2057c34b35 100644 --- a/scumm/sprite_he.cpp +++ b/scumm/sprite_he.cpp @@ -36,6 +36,12 @@ namespace Scumm { Sprite::Sprite(ScummEngine_v90he *vm) : _vm(vm) { } +Sprite::~Sprite() { + free(_spriteGroups); + free(_spriteTable); + free(_activeSpritesTable); +} + void ScummEngine_v90he::allocateArrays() { ScummEngine::allocateArrays(); _sprite->allocTables(_numSprites, MAX(64, _numSprites / 4), 64); |