瀏覽代碼

* 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 年之前
父節點
當前提交
0ba14c7ad8
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);