Parcourir la source

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

Sven/Sarah Barth il y a 2 ans
Parent
commit
a6ddea87b7
1 fichiers modifiés avec 0 ajouts et 2 suppressions
  1. 0 2
      compiler/ncnv.pas

+ 0 - 2
compiler/ncnv.pas

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