mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 10:49:20 +02:00
* cleanup captured symbols when moving them from the nested function to the new method
This commit is contained in:
parent
960c154f48
commit
965bba5ab4
@ -1081,6 +1081,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
captured:=pcapturedsyminfo(capturesyms[i]);
|
captured:=pcapturedsyminfo(capturesyms[i]);
|
||||||
pi.add_captured_sym(captured^.sym,captured^.fileinfo);
|
pi.add_captured_sym(captured^.sym,captured^.fileinfo);
|
||||||
|
dispose(captured);
|
||||||
end;
|
end;
|
||||||
capturesyms.clear;
|
capturesyms.clear;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user