2
0
Эх сурвалжийг харах

* properly clean up current_procinfo

git-svn-id: trunk@5339 -
florian 19 жил өмнө
parent
commit
2162f63def

+ 3 - 1
compiler/psub.pas

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