Skip to content

Commit dbc0889

Browse files
committed
Update main.cpp
1 parent dcf7e2d commit dbc0889

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

examples/command-line/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class MyCapturedResultReceiver : public CCapturedResultReceiver
5454
cout << "Result " << i + 1 << endl;
5555
cout << "Barcode Format: " << barcodeResultItem->GetFormatString() << endl;
5656
cout << "Barcode Text: " << barcodeResultItem->GetText() << endl;
57-
CPoint *points = barcodeResultItem->GetLocation().points;
57+
CQuadrilateral location = barcodeResultItem->GetLocation();
58+
CPoint *points = location.points;
5859
for (int j = 0; j < 4; j++)
5960
{
6061
cout << "Point " << j + 1 << ": (" << points[j][0] << ", " << points[j][1] << ")" << endl;
@@ -228,8 +229,6 @@ int main(int argc, char *argv[])
228229

229230
result->Release();
230231
}
231-
232-
captureResultArray->Release();
233232
}
234233
}
235234

0 commit comments

Comments
 (0)