소스 검색

* properly clean up current_procinfo

git-svn-id: trunk@5339 -
florian 19 년 전
부모
커밋
2162f63def
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      compiler/psub.pas

+ 3 - 1
compiler/psub.pas

@@ -74,6 +74,7 @@ interface
 implementation
 
     uses
+       sysutils,
        { common }
        cutils,
        { global }
@@ -1373,7 +1374,8 @@ implementation
           consume(_SEMICOLON);
 
         if not isnestedproc then
-          current_procinfo.free;
+          { current_procinfo is checked for nil later on }
+          freeandnil(current_procinfo);
       end;