diff options
author | Lei Zhang <thestig@chromium.org> | 2016-02-24 15:26:50 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-02-24 15:26:50 -0800 |
commit | 38eaaf36b09b816b963015e33dc4eb02580e0462 (patch) | |
tree | 9a2721eb404a2de4ddce91b50cac25b2cac0edb1 /xfa/src/fxbarcode/qrcode/BC_QRDetectorResult.cpp | |
parent | e1fb98394a6885cf03bdc6391e5a3878aad5b375 (diff) | |
download | pdfium-38eaaf36b09b816b963015e33dc4eb02580e0462.tar.xz |
Remove foo != NULL checks in xfa/src/fxbarcode.
R=dsinclair@chromium.org
Review URL: https://codereview.chromium.org/1726373002 .
Diffstat (limited to 'xfa/src/fxbarcode/qrcode/BC_QRDetectorResult.cpp')
-rw-r--r-- | xfa/src/fxbarcode/qrcode/BC_QRDetectorResult.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xfa/src/fxbarcode/qrcode/BC_QRDetectorResult.cpp b/xfa/src/fxbarcode/qrcode/BC_QRDetectorResult.cpp index fad100816f..df83d35be7 100644 --- a/xfa/src/fxbarcode/qrcode/BC_QRDetectorResult.cpp +++ b/xfa/src/fxbarcode/qrcode/BC_QRDetectorResult.cpp @@ -33,11 +33,7 @@ CBC_QRDetectorResult::~CBC_QRDetectorResult() { } m_points->RemoveAll(); delete m_points; - m_points = NULL; - if (m_bits != NULL) { - delete m_bits; - } - m_bits = NULL; + delete m_bits; } CBC_CommonBitMatrix* CBC_QRDetectorResult::GetBits() { return m_bits; |