Browse Source

tests: fixed mem leak

mattias 1 year ago
parent
commit
00c9a749d1
1 changed files with 0 additions and 2 deletions
  1. 0 2
      tests/base/tctextlayout.pas

+ 0 - 2
tests/base/tctextlayout.pas

@@ -291,7 +291,6 @@ begin
   inherited SetUp;
   Layouter.Text:='this text';
   FTextBlock:=CreateTextBlock(0,4);
-  FFont:=TTextFont.Create(nil);
   FTextBlock.Font:=FFont;
   Block.Font.Name:='Arial';
   Block.Font.Size:=12;
@@ -301,7 +300,6 @@ end;
 
 procedure TTestTextBlock.TearDown;
 begin
-  FreeAndNil(FFont);
   FreeAndNil(FTextBlock);
   inherited TearDown;
 end;