mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 08:49:26 +02:00
* Fixed mem-leak
git-svn-id: trunk@35753 -
This commit is contained in:
parent
f218076c8a
commit
39b780c3e3
@ -381,13 +381,17 @@ var
|
||||
infosl: TStringList;
|
||||
begin
|
||||
infosl:=TStringList.Create;
|
||||
infosl.Delimiter:=' ';
|
||||
infosl.DelimitedText:=GetCompilerInfo(ACompiler,AOptions);
|
||||
if infosl.Count<>3 then
|
||||
Raise EPackagerError.Create(SErrInvalidFPCInfo);
|
||||
AVersion:=infosl[0];
|
||||
ACPU:=StringToCPU(infosl[1]);
|
||||
AOS:=StringToOS(infosl[2]);
|
||||
try
|
||||
infosl.Delimiter:=' ';
|
||||
infosl.DelimitedText:=GetCompilerInfo(ACompiler,AOptions);
|
||||
if infosl.Count<>3 then
|
||||
Raise EPackagerError.Create(SErrInvalidFPCInfo);
|
||||
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