From d6bfb829cf6ac3cfd491b16c48d63ccf95140081 Mon Sep 17 00:00:00 2001 From: Juha Date: Fri, 23 Dec 2022 09:09:05 +0200 Subject: [PATCH] =?UTF-8?q?Jedi=20Code=20Format:=20Fix=20a=20memory=20leak?= =?UTF-8?q?.=20Issue=20#40058,=20patch=20by=20Domingo=20Galm=C3=A9s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/jcf2/Process/Transform/SortUsesData.pas | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/jcf2/Process/Transform/SortUsesData.pas b/components/jcf2/Process/Transform/SortUsesData.pas index 2b9607ca6f..d72f02b1b5 100644 --- a/components/jcf2/Process/Transform/SortUsesData.pas +++ b/components/jcf2/Process/Transform/SortUsesData.pas @@ -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;