diff options
author | Paul Gilbert | 2017-09-26 20:32:58 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-26 20:32:58 -0400 |
commit | c92e41052f088c4c39e1c3221b3654b42ce72a20 (patch) | |
tree | bc8b34e0bbd3e195041ea98e19e50b5fe36460ed /engines | |
parent | 49273699873390988d54417825e68ddac64343ac (diff) | |
download | scummvm-rg350-c92e41052f088c4c39e1c3221b3654b42ce72a20.tar.gz scummvm-rg350-c92e41052f088c4c39e1c3221b3654b42ce72a20.tar.bz2 scummvm-rg350-c92e41052f088c4c39e1c3221b3654b42ce72a20.zip |
TITANIC: Add missing CSound destructor
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/sound/sound.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/sound/sound.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp index 3c5801e418..17681d86ce 100644 --- a/engines/titanic/sound/sound.cpp +++ b/engines/titanic/sound/sound.cpp @@ -37,6 +37,10 @@ CSound::CSound(CGameManager *owner, Audio::Mixer *mixer) : g_vm->_movieManager.setSoundManager(&_soundManager); } +CSound::~CSound() { + _sounds.destroyContents(); +} + void CSound::save(SimpleFile *file) const { _soundManager.save(file); } diff --git a/engines/titanic/sound/sound.h b/engines/titanic/sound/sound.h index ee2b8cc13d..d93db4001f 100644 --- a/engines/titanic/sound/sound.h +++ b/engines/titanic/sound/sound.h @@ -77,6 +77,7 @@ public: QSoundManager _soundManager; public: CSound(CGameManager *owner, Audio::Mixer *mixer); + ~CSound(); /** * Save the data for the class to file |