mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-21 16:59:36 +02:00
Jedi Code Format: Fix a memory leak. Issue #40058, patch by Domingo Galmés.
This commit is contained in:
parent
0777a5b939
commit
d6bfb829cf
@ -349,9 +349,7 @@ end;
|
|||||||
constructor TUsesSection.Create;
|
constructor TUsesSection.Create;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
fcItems := TObjectList.Create;
|
fcItems := TObjectList.Create(true);
|
||||||
// tokens are just referred here, owned by the parse treee
|
|
||||||
fcItems.OwnsObjects := False;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TUsesSection.Destroy;
|
destructor TUsesSection.Destroy;
|
||||||
|
Loading…
Reference in New Issue
Block a user