diff options
author | Travis Howell | 2009-01-27 03:10:56 +0000 |
---|---|---|
committer | Travis Howell | 2009-01-27 03:10:56 +0000 |
commit | bce799366fe3784966db23f9201e02c6c3c95e80 (patch) | |
tree | 43405802ae8b4aced4b16f0ac689b87e864ad13a /sound/wave.cpp | |
parent | e338205066c7d794973e8f31e943ac7d1339bdec (diff) | |
download | scummvm-rg350-bce799366fe3784966db23f9201e02c6c3c95e80.tar.gz scummvm-rg350-bce799366fe3784966db23f9201e02c6c3c95e80.tar.bz2 scummvm-rg350-bce799366fe3784966db23f9201e02c6c3c95e80.zip |
Fix regression, the original stream shouldn't be deleted.
svn-id: r36091
Diffstat (limited to 'sound/wave.cpp')
-rw-r--r-- | sound/wave.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/wave.cpp b/sound/wave.cpp index 80bf6d42d4..c829c41e0f 100644 --- a/sound/wave.cpp +++ b/sound/wave.cpp @@ -185,7 +185,6 @@ AudioStream *makeWAVStream(Common::SeekableReadStream *stream, bool disposeAfter data = (byte *)malloc(size); assert(data); stream->read(data, size); - delete stream; // Since we allocated our own buffer for the data, we must set the autofree flag. flags |= Audio::Mixer::FLAG_AUTOFREE; |