mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 20:59:17 +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;
|
destructor TLRSObjectReader.Destroy;
|
||||||
begin
|
begin
|
||||||
{ Seek back the amount of bytes that we didn't process until now: }
|
{ 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
|
if Assigned(FBuffer) then
|
||||||
FreeMem(FBuffer, FBufSize);
|
FreeMem(FBuffer, FBufSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user