aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorTravis Howell2009-01-27 03:10:56 +0000
committerTravis Howell2009-01-27 03:10:56 +0000
commitbce799366fe3784966db23f9201e02c6c3c95e80 (patch)
tree43405802ae8b4aced4b16f0ac689b87e864ad13a /sound
parente338205066c7d794973e8f31e943ac7d1339bdec (diff)
downloadscummvm-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')
-rw-r--r--sound/wave.cpp1
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;