diff options
author | Torbjörn Andersson | 2015-01-24 14:56:48 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2015-01-24 14:57:47 +0100 |
commit | 4e1ffc9434f771d3f43e66104adeea9e0166123c (patch) | |
tree | 822a330cd2d978fa771254aeca649975d5fd89d8 /engines | |
parent | ca83ecd8c22c132da3f9b8963ffb76702692a272 (diff) | |
download | scummvm-rg350-4e1ffc9434f771d3f43e66104adeea9e0166123c.tar.gz scummvm-rg350-4e1ffc9434f771d3f43e66104adeea9e0166123c.tar.bz2 scummvm-rg350-4e1ffc9434f771d3f43e66104adeea9e0166123c.zip |
ZVISION: Delete stream if there is no audio stream to queue to
This probably never happens, but is consistent with our common AVI
decoder.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/video/zork_avi_decoder.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |