浏览代码

* fixed memory leaks and multiple recalculation regarding function result
locations

git-svn-id: trunk@30852 -

Jonas Maebe 10 年之前
父节点
当前提交
d7412fb5c0
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/paramgr.pas

+ 2 - 1
compiler/paramgr.pas

@@ -479,7 +479,8 @@ implementation
 
     procedure tparamanager.create_funcretloc_info(p : tabstractprocdef; side: tcallercallee);
       begin
-        p.funcretloc[side]:=get_funcretloc(p,side,nil);
+        if not assigned(p.funcretloc[side].Location) then
+          p.funcretloc[side]:=get_funcretloc(p,side,nil);
       end;