aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2/music.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword2/music.cpp')
-rw-r--r--engines/sword2/music.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword2/music.cpp b/engines/sword2/music.cpp
index 67d04c870d..e5936bb958 100644
--- a/engines/sword2/music.cpp
+++ b/engines/sword2/music.cpp
@@ -199,17 +199,17 @@ static Audio::AudioStream *getAudioStream(SoundFileHandle *fh, const char *base,
#ifdef USE_MAD
case kMP3Mode:
tmp = new SafeSubReadStream(&fh->file, pos, pos + enc_len);
- return Audio::makeMP3Stream(tmp, true);
+ return Audio::makeMP3Stream(tmp, DisposeAfterUse::YES);
#endif
#ifdef USE_VORBIS
case kVorbisMode:
tmp = new SafeSubReadStream(&fh->file, pos, pos + enc_len);
- return Audio::makeVorbisStream(tmp, true);
+ return Audio::makeVorbisStream(tmp, DisposeAfterUse::YES);
#endif
#ifdef USE_FLAC
case kFlacMode:
tmp = new SafeSubReadStream(&fh->file, pos, pos + enc_len);
- return Audio::makeFlacStream(tmp, true);
+ return Audio::makeFlacStream(tmp, DisposeAfterUse::YES);
#endif
default:
return NULL;