mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 14:49:10 +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
|
{ replace all uses of the captured Self by the new Self
|
||||||
parameter }
|
parameter }
|
||||||
foreachnodestatic(pm_preprocess,tcgprocinfo(pi).code,@replace_self_sym,@mapping);
|
foreachnodestatic(pm_preprocess,tcgprocinfo(pi).code,@replace_self_sym,@mapping);
|
||||||
|
|
||||||
mapping.oldsym.free;
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user