mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 21:59:36 +02:00
fixed checking in TLRSObjectReader.Destroy if FStream is assigned
git-svn-id: trunk@5822 -
This commit is contained in:
parent
f46b2eb66c
commit
f0d075ab77
@ -2212,7 +2212,8 @@ end;
|
||||
destructor TLRSObjectReader.Destroy;
|
||||
begin
|
||||
{ Seek back the amount of bytes that we didn't process until now: }
|
||||
FStream.Seek(Integer(FBufPos) - Integer(FBufEnd), soFromCurrent);
|
||||
if Assigned(FStream) then
|
||||
FStream.Seek(Integer(FBufPos) - Integer(FBufEnd), soFromCurrent);
|
||||
|
||||
if Assigned(FBuffer) then
|
||||
FreeMem(FBuffer, FBufSize);
|
||||
|
Loading…
Reference in New Issue
Block a user