Browse Source

* fix memory leak when freeing a temp delete node: also call the inherited destructor so that e.g. tnode.optinfo is freed.

git-svn-id: trunk@39558 -
svenbarth 7 năm trước cách đây
mục cha
commit
0ba14c7ad8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      compiler/nbas.pas

+ 1 - 0
compiler/nbas.pas

@@ -1342,6 +1342,7 @@ implementation
         tempinfo^.withnode.free;
         tempinfo^.tempinitcode.free;
         dispose(tempinfo);
+        inherited destroy;
       end;
 
     procedure ttempdeletenode.printnodedata(var t:text);