mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 14:19:31 +02:00
* take a copy of the constructor assignment node (and free it together with the attribute)
git-svn-id: trunk@42388 -
This commit is contained in:
parent
d31dd4ac7b
commit
f9cda608fa
@ -1034,7 +1034,7 @@ implementation
|
||||
attribute:=trtti_attribute(pd.skpara);
|
||||
|
||||
load := cloadnode.create(pd.funcretsym,pd.funcretsym.Owner);
|
||||
assignment := cassignmentnode.create(load,Attribute.constructorcall);
|
||||
assignment := cassignmentnode.create(load,Attribute.constructorcall.getcopy);
|
||||
assignment.resultdef := voidtype;
|
||||
|
||||
statement := cstatementnode.Create(assignment,nil);
|
||||
|
@ -2898,6 +2898,7 @@ implementation
|
||||
var
|
||||
n : tnode;
|
||||
begin
|
||||
constructorcall.free;
|
||||
for n in paras do
|
||||
n.free;
|
||||
inherited destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user