Sfoglia il codice sorgente

* Fixed mem-leak in parsing of class-acctributes

git-svn-id: branches/joost/classattributes@22849 -
joost 13 anni fa
parent
commit
1519a4597e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      compiler/pdecl.pas

+ 1 - 0
compiler/pdecl.pas

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