Explorar el Código

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

Sven/Sarah Barth hace 2 años
padre
commit
a6ddea87b7
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  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
                               parameter }
                             foreachnodestatic(pm_preprocess,tcgprocinfo(pi).code,@replace_self_sym,@mapping);
-
-                            mapping.oldsym.free;
                           end
                         else
                           begin