diff options
Diffstat (limited to 'engines/titanic')
-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 |