Fix bug ID #35086: TParser should reset position (tentative)

git-svn-id: trunk@41331 -
This commit is contained in:
michael 2019-02-16 08:39:40 +00:00
parent a750039f7c
commit 4143ecf6c0

View File

@ -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;