Explorar o código

* 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 %!s(int64=7) %!d(string=hai) anos
pai
achega
0ba14c7ad8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);