diff options
author | Travis Howell | 2003-07-24 12:32:56 +0000 |
---|---|---|
committer | Travis Howell | 2003-07-24 12:32:56 +0000 |
commit | 55c71f65c0794acb45acd4ac07854bd5b53e4429 (patch) | |
tree | d597f3505b2c2c968907b1aac9ae6b3e3596a894 /simon | |
parent | f930abe56825080fc0dd4f5ae8b82f993c7ff715 (diff) | |
download | scummvm-rg350-55c71f65c0794acb45acd4ac07854bd5b53e4429.tar.gz scummvm-rg350-55c71f65c0794acb45acd4ac07854bd5b53e4429.tar.bz2 scummvm-rg350-55c71f65c0794acb45acd4ac07854bd5b53e4429.zip |
Another leak
svn-id: r9165
Diffstat (limited to 'simon')
-rw-r--r-- | simon/sound.cpp | 3 |
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 |