mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 01:08:07 +02:00
* don't free the old, captured Self symbol as that does not belong to the anonymous function
This commit is contained in:
parent
1d73dab2b0
commit
a6ddea87b7
@ -2574,8 +2574,6 @@ implementation
|
||||
{ replace all uses of the captured Self by the new Self
|
||||
parameter }
|
||||
foreachnodestatic(pm_preprocess,tcgprocinfo(pi).code,@replace_self_sym,@mapping);
|
||||
|
||||
mapping.oldsym.free;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user