Преглед изворни кода

- 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;