mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 10:40:13 +02:00
Fix bug ID #35086: TParser should reset position (tentative)
git-svn-id: trunk@41331 -
This commit is contained in:
parent
a750039f7c
commit
4143ecf6c0
@ -361,8 +361,16 @@ begin
|
||||
end;
|
||||
|
||||
destructor TParser.Destroy;
|
||||
|
||||
Var
|
||||
aCount : Integer;
|
||||
|
||||
begin
|
||||
fStream.Position:=SourcePos;
|
||||
if fToken=toWString then
|
||||
aCount:=Length(fLastTokenWStr)*2
|
||||
else
|
||||
aCount:=Length(fLastTokenStr);
|
||||
fStream.Position:=SourcePos-aCount;
|
||||
FreeMem(fBuf);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user