Explorar o código

* call inherited Destroy in TAsmOptimizer to avoid memory leak

git-svn-id: trunk@21706 -
florian %!s(int64=13) %!d(string=hai) anos
pai
achega
117c083003
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/aopt.pas

+ 2 - 1
compiler/aopt.pas

@@ -298,7 +298,8 @@ Unit aopt;
       Begin
         if assigned(LabelInfo^.LabelTable) then
           Freemem(LabelInfo^.LabelTable);
-        Dispose(LabelInfo)
+        Dispose(LabelInfo);
+        inherited Destroy;
       End;