diff options
author | Julien Templier | 2010-11-11 06:18:23 +0000 |
---|---|---|
committer | Julien Templier | 2010-11-11 06:18:23 +0000 |
commit | 6711c5a8cf48c579bb4b972d4717fb6f1a394320 (patch) | |
tree | 546bb986c01d19c9a375dda3a17341e1fe2d906a /engines/lastexpress/entities/entity_intern.h | |
parent | da33617061d3d35becaaa741c8144377bf40f39b (diff) | |
download | scummvm-rg350-6711c5a8cf48c579bb4b972d4717fb6f1a394320.tar.gz scummvm-rg350-6711c5a8cf48c579bb4b972d4717fb6f1a394320.tar.bz2 scummvm-rg350-6711c5a8cf48c579bb4b972d4717fb6f1a394320.zip |
LASTEXPRESS: Fix more memory leaks
- Missing deallocation of queued frames in SceneManager
- Leaking functor on each call to entity setup functions
- Add SoundEntry destructor & better Entity cleanup
as reported by digitall
svn-id: r54196
Diffstat (limited to 'engines/lastexpress/entities/entity_intern.h')
-rw-r--r-- | engines/lastexpress/entities/entity_intern.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lastexpress/entities/entity_intern.h b/engines/lastexpress/entities/entity_intern.h index 71607ed511..6f80d29d8c 100644 --- a/engines/lastexpress/entities/entity_intern.h +++ b/engines/lastexpress/entities/entity_intern.h @@ -83,7 +83,7 @@ void class::setup_##name() { \ } #define BEGIN_SETUP(class, name, index, type) \ - _engine->getGameLogic()->getGameState()->getGameSavePoints()->setCallback(_entityIndex, new ENTITY_CALLBACK(class, name, this)); \ + _engine->getGameLogic()->getGameState()->getGameSavePoints()->setCallback(_entityIndex, _callbacks[index]); \ _data->setCurrentCallback(index); \ _data->resetCurrentParameters<type>(); |