Spelt/ZXing.Delphi

Memory leak in TUPCEANExtension5Support.decodeRow

JedrzejczykRobert opened this issue · 1 comments

After apply #145 and like TUPCEANExtension2Support.decodeRow:

file: ZXing.OneD.UPCEANExtension5Support
line: 123

current:

  if (extensionData <> nil)
  then
     extensionResult.putAllMetadata(extensionData);

should be:

  if (extensionData <> nil) then
  begin
    extensionResult.putAllMetadata(extensionData);
    FreeAndNil(extensionData);
  end;
Spelt commented