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)));