Explorar o código

* cleanup captured symbols when moving them from the nested function to the new method

Sven/Sarah Barth %!s(int64=3) %!d(string=hai) anos
pai
achega
965bba5ab4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      compiler/procdefutil.pas

+ 1 - 0
compiler/procdefutil.pas

@@ -1081,6 +1081,7 @@ implementation
                 begin
                   captured:=pcapturedsyminfo(capturesyms[i]);
                   pi.add_captured_sym(captured^.sym,captured^.fileinfo);
+                  dispose(captured);
                 end;
               capturesyms.clear;
             end;