SHERLOCK: 3DO: movie decoder: fix poss.memory leak
This commit is contained in:
parent
23511d4162
commit
c3f1817e74
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue