From e636a8028bb086bf4439deaaa9d3037d0c84dc92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A1=E4=B8=96=E7=99=BD=E7=8E=89?= Date: Wed, 27 May 2015 15:05:51 +0800 Subject: [PATCH] fix GenericMultipleBarcodeReader Segmentation fault --- core/src/zxing/multi/GenericMultipleBarcodeReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/zxing/multi/GenericMultipleBarcodeReader.cpp b/core/src/zxing/multi/GenericMultipleBarcodeReader.cpp index 4b16ab2..5ab98a2 100644 --- a/core/src/zxing/multi/GenericMultipleBarcodeReader.cpp +++ b/core/src/zxing/multi/GenericMultipleBarcodeReader.cpp @@ -128,7 +128,7 @@ Ref GenericMultipleBarcodeReader::translateResultPoints(Ref resu if (oldResultPoints->empty()) { return result; } - ArrayRef< Ref > newResultPoints; + ArrayRef< Ref > newResultPoints(new zxing::Array< Ref >()); for (int i = 0; i < oldResultPoints->size(); i++) { Ref oldPoint = oldResultPoints[i]; newResultPoints->values().push_back(Ref(new ResultPoint(oldPoint->getX() + xOffset, oldPoint->getY() + yOffset)));