Skip to content

Commit

Permalink
Small addition try finally
Browse files Browse the repository at this point in the history
  • Loading branch information
davidberneda committed Oct 2, 2024
1 parent 4b6983f commit 7ee61fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions demos/VCL/Header_Footer/Unit_Header_Footer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ procedure TFormHeaderFooter.Button1Click(Sender: TObject);
var tmp : TTeeGrid;
begin
tmp:=TTeeGrid.Create(Self);
tmp.Assign(TeeGrid1);
tmp.Free;
try
tmp.Assign(TeeGrid1);
finally
tmp.Free;
end;
end;

type
Expand Down

0 comments on commit 7ee61fd

Please sign in to comment.