You've already forked lazarus-ccr
fpspreadsheet: Fix crash in the biff8 reader's FreeSharedStringTable when no SST is used.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6912 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -816,15 +816,17 @@ end;
|
||||
|
||||
{@@ ----------------------------------------------------------------------------
|
||||
Frees the shared string table. Also: destroys the rich-text memory streams
|
||||
which can be assigned to string table items.
|
||||
which may be assigned to string table items.
|
||||
-------------------------------------------------------------------------------}
|
||||
procedure TsSpreadBIFF8Reader.FreeSharedStringTable;
|
||||
var
|
||||
j: Integer;
|
||||
begin
|
||||
for j := 0 to FSharedStringTable.Count-1 do
|
||||
TObject(FSharedStringTable.Objects[j]).Free;
|
||||
FreeAndNil(FSharedStringTable);
|
||||
if FSharedStringTable <> nil then begin
|
||||
for j := 0 to FSharedStringTable.Count-1 do
|
||||
TObject(FSharedStringTable.Objects[j]).Free;
|
||||
FreeAndNil(FSharedStringTable);
|
||||
end;
|
||||
end;
|
||||
|
||||
{@@ ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user