diff options
Diffstat (limited to 'xfa/src/fxbarcode/qrcode/BC_QRCoderDecoder.cpp')
-rw-r--r-- | xfa/src/fxbarcode/qrcode/BC_QRCoderDecoder.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xfa/src/fxbarcode/qrcode/BC_QRCoderDecoder.cpp b/xfa/src/fxbarcode/qrcode/BC_QRCoderDecoder.cpp index fcef73acbf..ebaa40fd12 100644 --- a/xfa/src/fxbarcode/qrcode/BC_QRCoderDecoder.cpp +++ b/xfa/src/fxbarcode/qrcode/BC_QRCoderDecoder.cpp @@ -39,10 +39,7 @@ void CBC_QRCoderDecoder::Init() { m_rsDecoder = new CBC_ReedSolomonDecoder(CBC_ReedSolomonGF256::QRCodeFild); } CBC_QRCoderDecoder::~CBC_QRCoderDecoder() { - if (m_rsDecoder != NULL) { - delete m_rsDecoder; - } - m_rsDecoder = NULL; + delete m_rsDecoder; } CBC_CommonDecoderResult* CBC_QRCoderDecoder::Decode(FX_BOOL* image, int32_t width, |