aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/game/sound.cpp
diff options
context:
space:
mode:
authorJulien Templier2010-11-11 03:25:35 +0000
committerJulien Templier2010-11-11 03:25:35 +0000
commit3b66e53bbed7365607bb3804b990984646ad2376 (patch)
tree37c619c30694495a839b7e74a5ec3b4c452dd09b /engines/lastexpress/game/sound.cpp
parentd1bd2497a584c415681bdc952b2fd430aeeb5e03 (diff)
downloadscummvm-rg350-3b66e53bbed7365607bb3804b990984646ad2376.tar.gz
scummvm-rg350-3b66e53bbed7365607bb3804b990984646ad2376.tar.bz2
scummvm-rg350-3b66e53bbed7365607bb3804b990984646ad2376.zip
LASTEXPRESS: Fix some memory leaks
- Reading past the end of file in SaveLoad::init - Missing deallocation of cache in SoundManager - Missing deallocation of coords in SceneHotspot - Missing deallocation of event handlers in LastExpressEngine::setEventHandlers - Missing deallocation of InSaveFile in SaveLoad::isSavegameValid - Missing deallocation of frames in Menu as reported by digitall svn-id: r54193
Diffstat (limited to 'engines/lastexpress/game/sound.cpp')
-rw-r--r--engines/lastexpress/game/sound.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/lastexpress/game/sound.cpp b/engines/lastexpress/game/sound.cpp
index 0dfc38b1b0..2249109fe9 100644
--- a/engines/lastexpress/game/sound.cpp
+++ b/engines/lastexpress/game/sound.cpp
@@ -118,6 +118,8 @@ SoundManager::SoundManager(LastExpressEngine *engine) : _engine(engine), _state(
}
SoundManager::~SoundManager() {
+ _cache.clear();
+
delete _soundStream;
// Zero passed pointers