Skip to content

Commit

Permalink
memory leak fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
landrix committed Aug 9, 2024
1 parent 925c8c1 commit 97c3c7d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions intf.ZUGFeRDInvoiceDescriptor22Writer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ procedure TZUGFeRDInvoiceDescriptor22Writer.Save(
_writer := TZUGFeRDInvoiceDescriptor22UBLWriter.Create
else
_writer := TZUGFeRDInvoiceDescriptor22CIIWriter.Create;

_writer.Save(_descriptor, _stream, _format);
try
_writer.Save(_descriptor, _stream, _format);
finally
_writer.Free;
end;
end;

function TZUGFeRDInvoiceDescriptor22Writer.Validate(
Expand Down

0 comments on commit 97c3c7d

Please sign in to comment.