aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/director/sound.cpp6
-rw-r--r--engines/director/sound.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/director/sound.cpp b/engines/director/sound.cpp
index 5f6d435392..d6c78a51ea 100644
--- a/engines/director/sound.cpp
+++ b/engines/director/sound.cpp
@@ -36,6 +36,12 @@ DirectorSound::DirectorSound() {
_mixer = g_system->getMixer();
}
+DirectorSound::~DirectorSound() {
+ delete _sound1;
+ delete _sound2;
+ delete _scriptSound;
+}
+
void DirectorSound::playWAV(Common::String filename, uint8 soundChannel) {
Common::File *file = new Common::File();
diff --git a/engines/director/sound.h b/engines/director/sound.h
index 87a989c596..4327b63310 100644
--- a/engines/director/sound.h
+++ b/engines/director/sound.h
@@ -39,6 +39,7 @@ private:
public:
DirectorSound();
+ ~DirectorSound();
void playWAV(Common::String filename, uint8 channelID);
void playAIFF(Common::String filename, uint8 channelID);