mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-08 05:07:30 +01:00
* Fixed mem-leak
git-svn-id: trunk@35753 -
This commit is contained in:
parent
f218076c8a
commit
39b780c3e3
@ -381,6 +381,7 @@ var
|
||||
infosl: TStringList;
|
||||
begin
|
||||
infosl:=TStringList.Create;
|
||||
try
|
||||
infosl.Delimiter:=' ';
|
||||
infosl.DelimitedText:=GetCompilerInfo(ACompiler,AOptions);
|
||||
if infosl.Count<>3 then
|
||||
@ -388,6 +389,9 @@ begin
|
||||
AVersion:=infosl[0];
|
||||
ACPU:=StringToCPU(infosl[1]);
|
||||
AOS:=StringToOS(infosl[2]);
|
||||
finally
|
||||
infosl.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
function IsSuperUser:boolean;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user