From 2bbf708deaf2d60c70786ec1ef2f9ea0d1f0bd4a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 18 Oct 2009 19:41:59 +0000 Subject: Introduced new type Common::DisposeAfterUse::Flag svn-id: r45233 --- engines/agi/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/agi') diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp index 5a39b663a5..05cbdaba5e 100644 --- a/engines/agi/sound.cpp +++ b/engines/agi/sound.cpp @@ -89,7 +89,7 @@ const uint8 *PCjrSound::getVoicePointer(uint voiceNum) { } IIgsSample::IIgsSample(uint8 *data, uint32 len, int resnum, SoundMgr &manager) : AgiSound(manager) { - Common::MemoryReadStream stream(data, len, true); + Common::MemoryReadStream stream(data, len, Common::DisposeAfterUse::YES); // Check that the header was read ok and that it's of the correct type if (_header.read(stream) && _header.type == AGI_SOUND_SAMPLE) { // An Apple IIGS AGI sample resource -- cgit v1.2.3