mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 14:19:31 +02:00
* don't free the constructor call in trtti_attribute_list as that is already freed in the destructor of trtti_attribute
git-svn-id: trunk@42406 -
This commit is contained in:
parent
404b465c33
commit
90bec938f6
@ -3046,14 +3046,7 @@ implementation
|
||||
|
||||
|
||||
destructor trtti_attribute_list.destroy;
|
||||
var
|
||||
i : longint;
|
||||
begin
|
||||
{ if the attributes are not bound we need to free their generated
|
||||
constructor functions as well }
|
||||
if not is_bound and assigned(rtti_attributes) then
|
||||
for i:=0 to rtti_attributes.count-1 do
|
||||
trtti_attribute(rtti_attributes[i]).constructorcall.free;
|
||||
rtti_attributes.Free;
|
||||
inherited destroy;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user