[Scummvm-git-logs] scummvm master -> c92e41052f088c4c39e1c3221b3654b42ce72a20
dreammaster
dreammaster at scummvm.org
Wed Sep 27 02:33:09 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
c92e41052f TITANIC: Add missing CSound destructor
Commit: c92e41052f088c4c39e1c3221b3654b42ce72a20
https://github.com/scummvm/scummvm/commit/c92e41052f088c4c39e1c3221b3654b42ce72a20
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-09-26T20:32:58-04:00
Commit Message:
TITANIC: Add missing CSound destructor
Changed paths:
engines/titanic/sound/sound.cpp
engines/titanic/sound/sound.h
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp
index 3c5801e..17681d8 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 ee2b8cc..d93db40 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
More information about the Scummvm-git-logs
mailing list