浏览代码

* Fixed mem-leak in parsing of class-acctributes

git-svn-id: branches/joost/classattributes@22849 -
joost 13 年之前
父节点
当前提交
1519a4597e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/pdecl.pas

+ 1 - 0
compiler/pdecl.pas

@@ -399,6 +399,7 @@ implementation
           oldblock_type := block_type;
           oldblock_type := block_type;
           block_type := bt_body;
           block_type := bt_body;
           do_member_read(od,false,constrpd.procsym,p1,again,[]);
           do_member_read(od,false,constrpd.procsym,p1,again,[]);
+          p1.Free;
           block_type:=oldblock_type;
           block_type:=oldblock_type;
 
 
           { Add attribute to attribute list which will be added
           { Add attribute to attribute list which will be added