Skip to content

Commit

Permalink
Memory leak in UPCEANExtension2Support.decodeRow #146
Browse files Browse the repository at this point in the history
  • Loading branch information
E Spelt committed Aug 23, 2023
1 parent 4172ab1 commit fdc3918
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ class function TUPCEANExtension2Support.decodeRow(const rowNumber: Integer;
extensionResult := TReadResult.Create(resultString, nil, resultPoints, TBarcodeFormat.UPC_EAN_EXTENSION);
if (extensionData <> nil)
then
begin
extensionResult.putAllMetadata(extensionData);

FreeAndNil(extensionData);
end;
Result := extensionResult;
end;

Expand Down

0 comments on commit fdc3918

Please sign in to comment.