Sfoglia il codice sorgente

* 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 anni fa
parent
commit
0ba14c7ad8
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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);