Fixed memory leak on destroy.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2371 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
Joshy
2012-03-30 19:25:26 +00:00
parent 768e780780
commit e061c01c66

View File

@ -1679,7 +1679,11 @@ begin
end;
destructor TsSpreadBIFF8Reader.Destroy;
var
j: integer;
begin
for j := FXFList.Count-1 downto 0 do TObject(FXFList[j]).Free;
for j := FFormatList.Count-1 downto 0 do TObject(FFormatList[j]).Free;
FXFList.Free;
FFormatList.Free;
if Assigned(FSharedStringTable) then FSharedStringTable.Free;