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