-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
6.4
-
None
-
-
36e66df6a (dev), c861d3233 (6.8), ed3b2dbe6 (tqtc/lts-6.5)
-
Multimedia wk 39-40
In qtmultimedia/src/plugins/multimedia/android/audio/qandroidaudiodecoder_p.h, there is a line that this. I found it since version 6.3.3.
QIODevice *m_device = nullptr; Decoder *m_decoder;
The pointer is not initialized, so it would be better to initialize the pointer to nullptr.
QIODevice *m_device = nullptr; Decoder *m_decoder = nullptr;
Moreover, this is not error, in qtmultimedia/src/plugins/multimedia/android/audio/qandroidaudiodecoder.cpp,
{}the ** _m_decoder_ has been initialized in the constructor.
QAndroidAudioDecoder::QAndroidAudioDecoder(QAudioDecoder *parent) : QPlatformAudioDecoder(parent), m_decoder(new Decoder() ) { //.... }
For Gerrit Dashboard: QTBUG-129464 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
594847,2 | Initialize pointer with nullptr | dev | qt/qtmultimedia | Status: MERGED | +2 | +1 |
595039,2 | Initialize pointer with nullptr | 6.8 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
595071,2 | Initialize pointer with nullptr | tqtc/lts-6.5 | qt/tqtc-qtmultimedia | Status: MERGED | +2 | 0 |