Spelt / ZXing.Delphi

ZXing Barcode Scanning object Pascal Library for Delphi VCL and Delphi Firemonkey
Apache License 2.0
471 stars 206 forks source link

Memory leak in TOneDReader.decode when hints contains ZXing.DecodeHintType.TRY_HARDER #170

Open JedrzejczykRobert opened 2 months ago

JedrzejczykRobert commented 2 months ago

file: ZXing.OneD.OneDReader.pas line: 185

current:

  Result := doDecode(image, hints);
  if (Result = nil) then
  begin
    Exit;
  end;

should be:

  Result := doDecode(image, hints);
  if (Result <> nil) then
  begin
    Exit;
  end;