mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 22:49:23 +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);
|
attribute:=trtti_attribute(pd.skpara);
|
||||||
|
|
||||||
load := cloadnode.create(pd.funcretsym,pd.funcretsym.Owner);
|
load := cloadnode.create(pd.funcretsym,pd.funcretsym.Owner);
|
||||||
assignment := cassignmentnode.create(load,Attribute.constructorcall);
|
assignment := cassignmentnode.create(load,Attribute.constructorcall.getcopy);
|
||||||
assignment.resultdef := voidtype;
|
assignment.resultdef := voidtype;
|
||||||
|
|
||||||
statement := cstatementnode.Create(assignment,nil);
|
statement := cstatementnode.Create(assignment,nil);
|
||||||
|
@ -2898,6 +2898,7 @@ implementation
|
|||||||
var
|
var
|
||||||
n : tnode;
|
n : tnode;
|
||||||
begin
|
begin
|
||||||
|
constructorcall.free;
|
||||||
for n in paras do
|
for n in paras do
|
||||||
n.free;
|
n.free;
|
||||||
inherited destroy;
|
inherited destroy;
|
||||||
|
Loading…
Reference in New Issue
Block a user