Jedi Code Format: Fix a memory leak. Issue #40058, patch by Domingo Galmés.

This commit is contained in:
Juha 2022-12-23 09:09:05 +02:00
parent 0777a5b939
commit d6bfb829cf

View File

@ -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;