Bläddra i källkod

* fixed memory leaks and multiple recalculation regarding function result
locations

git-svn-id: trunk@30852 -

Jonas Maebe 10 år sedan
förälder
incheckning
d7412fb5c0
1 ändrade filer med 2 tillägg och 1 borttagningar
  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;