Преглед на файлове

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

Sven/Sarah Barth преди 2 години
родител
ревизия
a6ddea87b7
променени са 1 файла, в които са добавени 0 реда и са изтрити 2 реда
  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