* fixed memory leaks and multiple recalculation regarding function result

locations

git-svn-id: trunk@30852 -
This commit is contained in:
Jonas Maebe 2015-05-14 14:42:28 +00:00
parent 9ceddf9b16
commit d7412fb5c0

View File

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