diff options
author | Johannes Schickel | 2014-01-17 17:48:16 -0800 |
---|---|---|
committer | Johannes Schickel | 2014-01-17 17:48:16 -0800 |
commit | 417064e3116e9fbb5737f7f9f13acc54b914e7be (patch) | |
tree | e065882eaab8bf35ad436a9a6273605c78bab450 /audio | |
parent | b23f7640289fc1203d5e8ad3f27a24c403bcc4b3 (diff) | |
parent | ac4087856f02725c288e1cef6b089acf7a6121aa (diff) | |
download | scummvm-rg350-417064e3116e9fbb5737f7f9f13acc54b914e7be.tar.gz scummvm-rg350-417064e3116e9fbb5737f7f9f13acc54b914e7be.tar.bz2 scummvm-rg350-417064e3116e9fbb5737f7f9f13acc54b914e7be.zip |
Merge pull request #417 from digitall/STACK_fixes
ALL: Fix optimization unstable code on checking for null after new.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/decoders/voc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decoders/voc.cpp b/audio/decoders/voc.cpp index fa330c6f2c..ec589533eb 100644 --- a/audio/decoders/voc.cpp +++ b/audio/decoders/voc.cpp @@ -559,7 +559,7 @@ SeekableAudioStream *makeVOCStream(Common::SeekableReadStream *stream, byte flag SeekableAudioStream *audioStream = new VocStream(stream, (flags & Audio::FLAG_UNSIGNED) != 0, disposeAfterUse); - if (audioStream && audioStream->endOfData()) { + if (audioStream->endOfData()) { delete audioStream; return 0; } else { |