* 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:
svenbarth 2019-07-12 22:08:04 +00:00
parent 404b465c33
commit 90bec938f6

View File

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