Chromium Code Reviews| Index: xfa/fxbarcode/pdf417/BC_PDF417Detector.cpp |
| diff --git a/xfa/fxbarcode/pdf417/BC_PDF417Detector.cpp b/xfa/fxbarcode/pdf417/BC_PDF417Detector.cpp |
| index cfd52e56dc5c38929921651e11fc3e3e2eece46c..1c6600a401599915da83da1a610d4d2262b2d5d6 100644 |
| --- a/xfa/fxbarcode/pdf417/BC_PDF417Detector.cpp |
| +++ b/xfa/fxbarcode/pdf417/BC_PDF417Detector.cpp |
| @@ -114,9 +114,7 @@ CFX_PtrArray* CBC_Detector::detect(FX_BOOL multiple, |
| CFX_PtrArray* vertices = findVertices(bitMatrix, row, column); |
| if (vertices->GetAt(0) == NULL && vertices->GetAt(3) == NULL) { |
| if (!foundBarcodeInRow) { |
| - if (vertices) { |
| - delete (vertices); |
| - } |
| + delete (vertices); |
|
Tom Sepez
2016/04/28 21:47:22
() ? Also below.
Lei Zhang
2016/04/28 22:31:10
Done.
|
| break; |
| } |
| foundBarcodeInRow = FALSE; |
| @@ -132,9 +130,7 @@ CFX_PtrArray* CBC_Detector::detect(FX_BOOL multiple, |
| } |
| } |
| row += ROW_STEP; |
| - if (vertices) { |
| - delete (vertices); |
| - } |
| + delete (vertices); |
| continue; |
| } |
| foundBarcodeInRow = TRUE; |