aboutsummaryrefslogtreecommitdiff
path: root/sound/aiff.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/aiff.cpp')
-rw-r--r--sound/aiff.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/aiff.cpp b/sound/aiff.cpp
index b1f00c714e..c0832b7cea 100644
--- a/sound/aiff.cpp
+++ b/sound/aiff.cpp
@@ -172,10 +172,8 @@ SeekableAudioStream *makeAIFFStream(Common::SeekableReadStream &stream) {
assert(data);
stream.read(data, size);
- // Since we allocated our own buffer for the data, we must set the autofree flag.
- flags |= Audio::Mixer::FLAG_AUTOFREE;
-
- return makeRawMemoryStream(data, size, rate, flags);
+ // Since we allocated our own buffer for the data, we must specify DisposeAfterUse::YES.
+ return makeRawMemoryStream(data, size, DisposeAfterUse::YES, rate, flags);
}
} // End of namespace Audio