mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 14:59:17 +02:00
fixed memleak when destroying TOutputLines
git-svn-id: trunk@7256 -
This commit is contained in:
parent
4056975eaf
commit
8f5ae6f7e5
@ -92,6 +92,7 @@ type
|
||||
}
|
||||
TOutputLines = class(TStringList)
|
||||
public
|
||||
destructor Destroy; override;
|
||||
procedure Clear; override;
|
||||
procedure Delete(Index: Integer); override;
|
||||
end;
|
||||
@ -1034,6 +1035,12 @@ end;
|
||||
|
||||
{ TOutputLines }
|
||||
|
||||
destructor TOutputLines.Destroy;
|
||||
begin
|
||||
Clear; // To free the associated objects
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TOutputLines.Clear;
|
||||
var
|
||||
i: Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user