Fixed a bug in UnloadDIFArray when a file open was not successful.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2111 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
Joshy 2011-11-03 13:04:22 +00:00
parent 2c03552fdf
commit 3985c8f1a3

View File

@ -501,6 +501,11 @@ var
NextDIFC: SECT;
Index: SizeUint;
begin
if not Assigned(FDIFArray) then begin
//Nothing to be freed.
Result:=true;
exit;
end;
//The first DIF is an special one and do not need to be
//written as it is written with the header updates.
FDIFArray[0]:=PSECT(@FHeader._sectFat[0]);