aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorD G Turner2019-09-13 21:18:25 +0100
committerD G Turner2019-09-13 21:20:19 +0100
commitdf940b17af4b8aa9216f903fa9acdf46048bd894 (patch)
treed64d58c0df2c974ab6167e830060b4a742984cb3 /engines/hdb
parentced80c6da48fcb9922f190dc001c008426413e56 (diff)
downloadscummvm-rg350-df940b17af4b8aa9216f903fa9acdf46048bd894.tar.gz
scummvm-rg350-df940b17af4b8aa9216f903fa9acdf46048bd894.tar.bz2
scummvm-rg350-df940b17af4b8aa9216f903fa9acdf46048bd894.zip
HDB: Close Memory Leaks in Sound Class
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/sound.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/hdb/sound.cpp b/engines/hdb/sound.cpp
index d2c27961a9..842b145894 100644
--- a/engines/hdb/sound.cpp
+++ b/engines/hdb/sound.cpp
@@ -1545,7 +1545,7 @@ void Sound::playSound(int index) {
-1,
Audio::Mixer::kMaxChannelVolume,
0,
- DisposeAfterUse::NO,
+ DisposeAfterUse::YES,
false,
false
);
@@ -1606,7 +1606,7 @@ void Sound::playSoundEx(int index, int channel, bool loop) {
-1,
Audio::Mixer::kMaxChannelVolume,
0,
- DisposeAfterUse::NO,
+ DisposeAfterUse::YES,
false,
false
);
@@ -1618,7 +1618,7 @@ void Sound::playSoundEx(int index, int channel, bool loop) {
-1,
Audio::Mixer::kMaxChannelVolume,
0,
- DisposeAfterUse::NO,
+ DisposeAfterUse::YES,
false,
false
);