diff options
author | Max Horn | 2009-10-18 19:41:59 +0000 |
---|---|---|
committer | Max Horn | 2009-10-18 19:41:59 +0000 |
commit | 2bbf708deaf2d60c70786ec1ef2f9ea0d1f0bd4a (patch) | |
tree | 3aac193c0b0419c50f72690bdfa77016ea413464 /engines/tinsel/music.cpp | |
parent | 64861f1e40ee5084bcbfa3e5bd3adbe746d7dfc5 (diff) | |
download | scummvm-rg350-2bbf708deaf2d60c70786ec1ef2f9ea0d1f0bd4a.tar.gz scummvm-rg350-2bbf708deaf2d60c70786ec1ef2f9ea0d1f0bd4a.tar.bz2 scummvm-rg350-2bbf708deaf2d60c70786ec1ef2f9ea0d1f0bd4a.zip |
Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
Diffstat (limited to 'engines/tinsel/music.cpp')
-rw-r--r-- | engines/tinsel/music.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp index 6ce1ea7288..568bbbd637 100644 --- a/engines/tinsel/music.cpp +++ b/engines/tinsel/music.cpp @@ -874,7 +874,7 @@ bool PCMMusicPlayer::getNextChunk() { "offset %d (script %d.%d)", sampleCLength, sampleOffset, _scriptNum, _scriptIndex - 1); - sampleStream = new Common::MemoryReadStream(buffer, sampleCLength, true); + sampleStream = new Common::MemoryReadStream(buffer, sampleCLength, Common::DisposeAfterUse::YES); delete _curChunk; _curChunk = makeADPCMStream(sampleStream, true, sampleCLength, |