aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-27 21:11:32 -0400
committerPaul Gilbert2017-09-27 21:11:32 -0400
commit4a0a3c121f83980912c43223c9914c089bad2eef (patch)
tree8e19c71595e0bda847c2cf7ca24674b0f44fc41e /engines
parent9e0f23aabb8e0321b6829de6ffa56c7b8fb9c09f (diff)
downloadscummvm-rg350-4a0a3c121f83980912c43223c9914c089bad2eef.tar.gz
scummvm-rg350-4a0a3c121f83980912c43223c9914c089bad2eef.tar.bz2
scummvm-rg350-4a0a3c121f83980912c43223c9914c089bad2eef.zip
TITANIC: Fix leak of wave file audio streams
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/sound/wave_file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/sound/wave_file.cpp b/engines/titanic/sound/wave_file.cpp
index ba895088ad..ae633a2149 100644
--- a/engines/titanic/sound/wave_file.cpp
+++ b/engines/titanic/sound/wave_file.cpp
@@ -207,7 +207,7 @@ Audio::SoundHandle CWaveFile::play(int numLoops, byte volume) {
(numLoops == -1) ? 0 : numLoops);
_mixer->playStream(_soundType, &handle, stream, -1,
- volume, 0, DisposeAfterUse::NO);
+ volume, 0, DisposeAfterUse::YES);
return handle;
}