mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 02:26:20 +02:00
fcl-passrc: fixed compile with pas2js
This commit is contained in:
parent
450f250b2c
commit
3423fa9a82
@ -8351,6 +8351,7 @@ var
|
|||||||
SrcPos: TPasSourcePos;
|
SrcPos: TPasSourcePos;
|
||||||
I : Integer;
|
I : Integer;
|
||||||
V : TPasVariable;
|
V : TPasVariable;
|
||||||
|
Obj: TObject;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
// var a : Integer;
|
// var a : Integer;
|
||||||
@ -8372,7 +8373,10 @@ begin
|
|||||||
finally
|
finally
|
||||||
For I:=0 to List.count-1 do
|
For I:=0 to List.count-1 do
|
||||||
if List[i]<>Nil then
|
if List[i]<>Nil then
|
||||||
TObject(List[I]).Free;
|
begin
|
||||||
|
Obj:=TObject(List[I]);
|
||||||
|
Obj.Free;
|
||||||
|
end;
|
||||||
List.Free;
|
List.Free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user