mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:19:22 +02:00
MG: free unittree and fileinfos
git-svn-id: trunk@409 -
This commit is contained in:
parent
ac26d5531f
commit
36bdfe3664
@ -1401,6 +1401,7 @@ var DefTempl, MainDir,
|
||||
end;
|
||||
until FindNext(FileInfo)<>0;
|
||||
end;
|
||||
FindClose(FileInfo);
|
||||
end;
|
||||
|
||||
begin
|
||||
@ -1451,6 +1452,7 @@ var DefTempl, MainDir,
|
||||
AddFPCSourceLinkForUnit(UnitName);
|
||||
until FindNext(FileInfo)<>0;
|
||||
end;
|
||||
FindClose(FileInfo);
|
||||
end;
|
||||
PathStart:=PathEnd;
|
||||
end;
|
||||
@ -1509,6 +1511,11 @@ begin
|
||||
PackagesDir:=TDefineTemplate.Create('Packages','Package directories','',
|
||||
'packages',da_Directory);
|
||||
MainDir.AddChild(PackagesDir);
|
||||
|
||||
if UnitTree<>nil then begin
|
||||
UnitTree.FreeAndClear;
|
||||
UnitTree.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TDefinePool.CreateLazarusSrcTemplate(
|
||||
|
Loading…
Reference in New Issue
Block a user