Index: xfa/src/fxbarcode/oned/BC_OneDimReader.cpp |
diff --git a/xfa/src/fxbarcode/oned/BC_OneDimReader.cpp b/xfa/src/fxbarcode/oned/BC_OneDimReader.cpp |
index 075e69f21951a8332664461b8ba5d420686baf22..74f0db40686f166a1d18ae4281213131ee1721be 100644 |
--- a/xfa/src/fxbarcode/oned/BC_OneDimReader.cpp |
+++ b/xfa/src/fxbarcode/oned/BC_OneDimReader.cpp |
@@ -52,10 +52,7 @@ CFX_Int32Array* CBC_OneDimReader::FindStartGuardPattern(CBC_CommonBitArray* row, |
startEndPattern[2] = START_END_PATTERN[2]; |
int32_t nextStart = 0; |
while (!foundStart) { |
- if (startRange != NULL) { |
- delete startRange; |
- startRange = NULL; |
- } |
+ delete startRange; |
startRange = FindGuardPattern(row, nextStart, FALSE, &startEndPattern, e); |
BC_EXCEPTION_CHECK_ReturnValue(e, NULL); |
int32_t start = (*startRange)[0]; |