mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 18:29:09 +02:00
* Fix memleak in case of chained stream page contents
This commit is contained in:
parent
0fac221a61
commit
2e438c4981
@ -2434,7 +2434,12 @@ begin
|
|||||||
aPage:=aDoc.Page[I];
|
aPage:=aDoc.Page[I];
|
||||||
DoProgress(pkContentStream,I+1,aCount);
|
DoProgress(pkContentStream,I+1,aCount);
|
||||||
aStream:=GetPageContentStream(aDoc,aPage);
|
aStream:=GetPageContentStream(aDoc,aPage);
|
||||||
ParseContentStream(aPage,aStream,aOnCommand)
|
try
|
||||||
|
ParseContentStream(aPage,aStream,aOnCommand)
|
||||||
|
finally
|
||||||
|
if aStream is TChainedStream then
|
||||||
|
aStream.Free;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user