summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2011-12-07 18:03:35 +0200
committerLaszlo Papp <ext-laszlo.papp@nokia.com>2011-12-07 18:03:35 +0200
commit40ece7af4b3d6e2a5d4278ccd209c5ffddd8a053 (patch)
tree70322a5d880fb3fbb742c2e7b2551a830a272c85 /src
parent02e209b463a88ae00ec26c1865ebbcb07274e804 (diff)
Add the real NULL check against the memory allocation result for proper handling
Diffstat (limited to 'src')
-rw-r--r--src/decoders/qalflacaudiodecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoders/qalflacaudiodecoder.cpp b/src/decoders/qalflacaudiodecoder.cpp
index d6873ea..2f282b6 100644
--- a/src/decoders/qalflacaudiodecoder.cpp
+++ b/src/decoders/qalflacaudiodecoder.cpp
@@ -133,7 +133,7 @@ QALFlacAudioDecoder::open(const QString &fileName)
d->file.setFileName(fileName);
d->flacStreamDecoder = *FLAC__stream_decoder_new();
- if (d->flacStreamDecoder) {
+ if (d->flacStreamDecoder == 0) {
qWarning() << Q_FUNC_INFO << "Could not allocate enough memory for the flac stream decoder handle";
return false;
}