mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
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:
parent
ca83ecd8c2
commit
4e1ffc9434
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user