Browse Source

* 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 -
svenbarth 6 years ago
parent
commit
90bec938f6
1 changed files with 0 additions and 7 deletions
  1. 0 7
      compiler/symdef.pas

+ 0 - 7
compiler/symdef.pas

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