Skip to content

Commit

Permalink
TDecoderResult.Destroy - ByteSegments should not be cleared #153
Browse files Browse the repository at this point in the history
  • Loading branch information
E Spelt committed Aug 23, 2023
1 parent b2dc057 commit a58e557
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Lib/Classes/Common/ZXing.DecoderResult.pas
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,8 @@ constructor TDecoderResult.Create(RawBytes: TArray<Byte>; const Text: string;

destructor TDecoderResult.Destroy;
begin
if Assigned(ByteSegments)
then
ByteSegments.Clear;

RawBytes := nil;
FreeAndNil(Other);

inherited;
end;

Expand Down

0 comments on commit a58e557

Please sign in to comment.