aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/music.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/engines/sword1/music.cpp b/engines/sword1/music.cpp
index 41ca36e306..610ea1de1b 100644
--- a/engines/sword1/music.cpp
+++ b/engines/sword1/music.cpp
@@ -46,7 +46,6 @@ WaveAudioStream::WaveAudioStream(Common::File *source, uint32 pSize) {
_sourceFile = source;
_sampleBuf = (uint8*)malloc(SMP_BUFSIZE);
- _sourceFile->incRef();
if (_sourceFile->isOpen() && Audio::loadWAVFromStream(*_sourceFile, size, rate, flags)) {
_isStereo = (flags & Audio::Mixer::FLAG_STEREO) != 0;
_rate = rate;
@@ -67,7 +66,6 @@ WaveAudioStream::WaveAudioStream(Common::File *source, uint32 pSize) {
WaveAudioStream::~WaveAudioStream(void) {
free(_sampleBuf);
- _sourceFile->decRef();
}
int WaveAudioStream::readBuffer(int16 *buffer, const int numSamples) {