浏览代码

* call inherited Destroy in TAsmOptimizer to avoid memory leak

git-svn-id: trunk@21706 -
florian 13 年之前
父节点
当前提交
117c083003
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;