aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2015-06-15 23:41:59 +0200
committerMartin Kiewitz2015-06-15 23:41:59 +0200
commitc3f1817e74a313c956d73176a061af6acb6ce16e (patch)
tree2b37c71945656e71d8b02718ed7c7033bc621d46 /engines
parent23511d4162e853217eb74ad9770e515fdba668a7 (diff)
downloadscummvm-rg350-c3f1817e74a313c956d73176a061af6acb6ce16e.tar.gz
scummvm-rg350-c3f1817e74a313c956d73176a061af6acb6ce16e.tar.bz2
scummvm-rg350-c3f1817e74a313c956d73176a061af6acb6ce16e.zip
SHERLOCK: 3DO: movie decoder: fix poss.memory leak
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/scalpel/3do/movie_decoder.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sherlock/scalpel/3do/movie_decoder.cpp b/engines/sherlock/scalpel/3do/movie_decoder.cpp
index 6de4f86e91..8e8f99bc19 100644
--- a/engines/sherlock/scalpel/3do/movie_decoder.cpp
+++ b/engines/sherlock/scalpel/3do/movie_decoder.cpp
@@ -454,6 +454,9 @@ void Scalpel3DOMovieDecoder::StreamAudioTrack::queueAudio(Common::SeekableReadSt
if (audioStream) {
_totalAudioQueued += audioLengthMSecs;
_audioStream->queueAudioStream(audioStream, DisposeAfterUse::YES);
+ } else {
+ // in case there was an error
+ delete compressedAudioStream;
}
}