From 45bf5749280ddf1530d11d19b34b11768eb0dbb6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 1 Mar 2007 17:22:30 +0000 Subject: Get rid of the last two usages of File::incRef/decRef svn-id: r25919 --- engines/sword2/music.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'engines/sword2/music.cpp') diff --git a/engines/sword2/music.cpp b/engines/sword2/music.cpp index dcb1fb9e75..bfa65ba248 100644 --- a/engines/sword2/music.cpp +++ b/engines/sword2/music.cpp @@ -165,8 +165,6 @@ static Audio::AudioStream *getAudioStream(SoundFileHandle *fh, const char *base, CLUInputStream::CLUInputStream(Common::File *file, int size) : _file(file), _firstTime(true), _bufferEnd(_outbuf + BUFFER_SIZE) { - _file->incRef(); - // Determine the end position. _file_pos = _file->pos(); _end_pos = _file_pos + size; @@ -176,7 +174,6 @@ CLUInputStream::CLUInputStream(Common::File *file, int size) } CLUInputStream::~CLUInputStream() { - _file->decRef(); } int CLUInputStream::readBuffer(int16 *buffer, const int numSamples) { -- cgit v1.2.3