aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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