* don't free the old, captured Self symbol as that does not belong to the anonymous function

This commit is contained in:
Sven/Sarah Barth 2022-12-30 19:17:42 +01:00
parent 1d73dab2b0
commit a6ddea87b7

View File

@ -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