From 4e1ffc9434f771d3f43e66104adeea9e0166123c Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 24 Jan 2015 14:56:48 +0100 Subject: ZVISION: Delete stream if there is no audio stream to queue to This probably never happens, but is consistent with our common AVI decoder. --- engines/zvision/video/zork_avi_decoder.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') diff --git a/engines/zvision/video/zork_avi_decoder.cpp b/engines/zvision/video/zork_avi_decoder.cpp index abf48543c9..cf8505ec82 100644 --- a/engines/zvision/video/zork_avi_decoder.cpp +++ b/engines/zvision/video/zork_avi_decoder.cpp @@ -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 -- cgit v1.2.3