Просмотр исходного кода

* Reset F to NIL after freeing in tempclose

git-svn-id: trunk@17683 -
pierre 14 лет назад
Родитель
Сommit
09e9d922c7
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      compiler/ppu.pas

+ 1 - 0
compiler/ppu.pas

@@ -1181,6 +1181,7 @@ procedure tppufile.tempclose;
      begin
        closepos:=f.Position;
        f.Free;
+       f:=nil;
        closed:=true;
        tempclosed:=true;
      end;