diff options
author | Paul Gilbert | 2017-09-25 19:41:46 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-25 19:41:46 -0400 |
commit | 90636b367eb655699de8414ba855045627eec63f (patch) | |
tree | bcd4cf68823a076119bfe4601be99369d41dbf1d /engines/titanic/sound/sound.cpp | |
parent | ba380ac28ef5217de54f81a621b85f8bfb553f88 (diff) | |
download | scummvm-rg350-90636b367eb655699de8414ba855045627eec63f.tar.gz scummvm-rg350-90636b367eb655699de8414ba855045627eec63f.tar.bz2 scummvm-rg350-90636b367eb655699de8414ba855045627eec63f.zip |
TITANIC: Free wave files on game exit like original does
Diffstat (limited to 'engines/titanic/sound/sound.cpp')
-rw-r--r-- | engines/titanic/sound/sound.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp index befe1a8e09..3c5801e418 100644 --- a/engines/titanic/sound/sound.cpp +++ b/engines/titanic/sound/sound.cpp @@ -26,6 +26,12 @@ namespace Titanic { +CSoundItem::~CSoundItem() { + delete _waveFile; +} + +/*------------------------------------------------------------------------*/ + CSound::CSound(CGameManager *owner, Audio::Mixer *mixer) : _gameManager(owner), _soundManager(mixer) { g_vm->_movieManager.setSoundManager(&_soundManager); |