소스 검색

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

Sven/Sarah Barth 3 년 전
부모
커밋
965bba5ab4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;