mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 14:11:32 +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;
|
||||
begin
|
||||
inherited;
|
||||
fcItems := TObjectList.Create;
|
||||
// tokens are just referred here, owned by the parse treee
|
||||
fcItems.OwnsObjects := False;
|
||||
fcItems := TObjectList.Create(true);
|
||||
end;
|
||||
|
||||
destructor TUsesSection.Destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user