aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/gob.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2007-02-26 18:52:28 +0000
committerWillem Jan Palenstijn2007-02-26 18:52:28 +0000
commitb1a12658b05f77edf2c4b03c82b3f04e1255b35f (patch)
tree7ba6bdcd76b52c231c7deffd1b5414267796b56a /engines/gob/gob.cpp
parent1af4932242e637123099512e1aed80181a423687 (diff)
downloadscummvm-rg350-b1a12658b05f77edf2c4b03c82b3f04e1255b35f.tar.gz
scummvm-rg350-b1a12658b05f77edf2c4b03c82b3f04e1255b35f.tar.bz2
scummvm-rg350-b1a12658b05f77edf2c4b03c82b3f04e1255b35f.zip
stop audio streams before deleting them
svn-id: r25882
Diffstat (limited to 'engines/gob/gob.cpp')
-rw-r--r--engines/gob/gob.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp
index cbd28bc588..37a6032cd6 100644
--- a/engines/gob/gob.cpp
+++ b/engines/gob/gob.cpp
@@ -95,6 +95,9 @@ GobEngine::GobEngine(OSystem *syst) : Engine(syst) {
}
GobEngine::~GobEngine() {
+ if (_snd)
+ _snd->terminate();
+
delete _mult;
delete _game;
delete _snd;