aboutsummaryrefslogtreecommitdiff
path: root/simon/sound.cpp
diff options
context:
space:
mode:
authorTravis Howell2003-07-24 12:32:56 +0000
committerTravis Howell2003-07-24 12:32:56 +0000
commit55c71f65c0794acb45acd4ac07854bd5b53e4429 (patch)
treed597f3505b2c2c968907b1aac9ae6b3e3596a894 /simon/sound.cpp
parentf930abe56825080fc0dd4f5ae8b82f993c7ff715 (diff)
downloadscummvm-rg350-55c71f65c0794acb45acd4ac07854bd5b53e4429.tar.gz
scummvm-rg350-55c71f65c0794acb45acd4ac07854bd5b53e4429.tar.bz2
scummvm-rg350-55c71f65c0794acb45acd4ac07854bd5b53e4429.zip
Another leak
svn-id: r9165
Diffstat (limited to 'simon/sound.cpp')
-rw-r--r--simon/sound.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp
index 81d2c9c0a8..9276e3a40e 100644
--- a/simon/sound.cpp
+++ b/simon/sound.cpp
@@ -387,6 +387,9 @@ void SimonSound::readSfxFile(const char *filename, const char *gameDataPath) {
}
}
+ if (_effects)
+ delete _effects;
+
if (_game == GAME_SIMON1CD32) {
_effects = new VocSound(_mixer, file, 0, SOUND_BIG_ENDIAN);
} else