From a6ddea87b7eb020c03692d383d9592dea2be0cef Mon Sep 17 00:00:00 2001 From: Sven/Sarah Barth Date: Fri, 30 Dec 2022 19:17:42 +0100 Subject: [PATCH] * don't free the old, captured Self symbol as that does not belong to the anonymous function --- compiler/ncnv.pas | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/ncnv.pas b/compiler/ncnv.pas index df4cc72f0c..f2c8e4f2ae 100644 --- a/compiler/ncnv.pas +++ b/compiler/ncnv.pas @@ -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