Index: xfa/src/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp |
diff --git a/xfa/src/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp b/xfa/src/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp |
index b3ed5d4d9b4285cc770040b7d8389a251698c92f..b9accd6097ff895e9675ec8edf63d777280eff0f 100644 |
--- a/xfa/src/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp |
+++ b/xfa/src/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp |
@@ -30,14 +30,8 @@ CBC_QRCoderBlockPair::CBC_QRCoderBlockPair( |
m_errorCorrectionBytes = errorCorrection; |
} |
CBC_QRCoderBlockPair::~CBC_QRCoderBlockPair() { |
- if (m_dataBytes != NULL) { |
- delete m_dataBytes; |
- m_dataBytes = NULL; |
- } |
- if (m_errorCorrectionBytes != NULL) { |
- delete m_errorCorrectionBytes; |
- m_errorCorrectionBytes = NULL; |
- } |
+ delete m_dataBytes; |
+ delete m_errorCorrectionBytes; |
} |
CBC_CommonByteArray* CBC_QRCoderBlockPair::GetDataBytes() { |
return m_dataBytes; |