浏览代码

* 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;