Get rid of the last two usages of File::incRef/decRef

svn-id: r25919
This commit is contained in:
Max Horn 2007-03-01 17:22:30 +00:00
parent c489be38d6
commit 45bf574928
2 changed files with 0 additions and 5 deletions
engines
sword1
sword2

@ -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) {

@ -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) {