浏览代码

- removed 'if assigned(code)' before calling code.free in tcgprocinfo.destroy,
since .free already checks for <>nil

git-svn-id: trunk@39312 -

nickysn 7 年之前
父节点
当前提交
966564aade
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      compiler/psub.pas

+ 1 - 2
compiler/psub.pas

@@ -677,8 +677,7 @@ implementation
 
      destructor tcgprocinfo.destroy;
        begin
-         if assigned(code) then
-           code.free;
+         code.free;
          if not final_used then
            final_asmnode.free;
          inherited destroy;