ZVISION: Delete stream if there is no audio stream to queue to

This probably never happens, but is consistent with our common AVI
decoder.
This commit is contained in:
Torbjörn Andersson 2015-01-24 14:56:48 +01:00
parent ca83ecd8c2
commit 4e1ffc9434

View File

@ -58,6 +58,8 @@ void ZorkAVIDecoder::ZorkAVIAudioTrack::queueSound(Common::SeekableReadStream *s
updateCurChunk = false;
AVIAudioTrack::queueSound(stream);
}
} else {
delete stream;
}
// The superclass always updates _curChunk, whether or not audio has