| Index: xfa/fxbarcode/pdf417/BC_PDF417.cpp
|
| diff --git a/xfa/fxbarcode/pdf417/BC_PDF417.cpp b/xfa/fxbarcode/pdf417/BC_PDF417.cpp
|
| index 15b448b37bf92edf1e7e3d59798eac437190c9fb..908901c04eb2020f9b918d3b00b602561c4cedde 100644
|
| --- a/xfa/fxbarcode/pdf417/BC_PDF417.cpp
|
| +++ b/xfa/fxbarcode/pdf417/BC_PDF417.cpp
|
| @@ -401,11 +401,11 @@ CBC_PDF417::CBC_PDF417(FX_BOOL compact) {
|
| m_minRows = 3;
|
| m_barcodeMatrix = NULL;
|
| }
|
| +
|
| CBC_PDF417::~CBC_PDF417() {
|
| - if (m_barcodeMatrix) {
|
| - delete m_barcodeMatrix;
|
| - }
|
| + delete m_barcodeMatrix;
|
| }
|
| +
|
| CBC_BarcodeMatrix* CBC_PDF417::getBarcodeMatrix() {
|
| return m_barcodeMatrix;
|
| }
|
| @@ -556,9 +556,7 @@ CFX_Int32Array* CBC_PDF417::determineDimensions(
|
| continue;
|
| }
|
| ratio = newRatio;
|
| - if (dimension) {
|
| - delete dimension;
|
| - }
|
| + delete dimension;
|
| dimension = new CFX_Int32Array;
|
| dimension->Add(cols);
|
| dimension->Add(rows);
|
|
|