DescriptionFix page leaks in an embedder test
Embedder test's delegate function GetPage() calls FPDF_LoadPage() to
load a page which may be already loaded by embedder test itself.
Thus the page's ref count is increased unnecessarily.
This causes the page to be leaked. Fix this by putting the page map in
embedder test class and guarantee the page is loaded only once.
Also, fix leaks in this embedder tests by unloading the loaded pages to
properly release the resource.
BUG=pdfium:242
Committed: https://pdfium.googlesource.com/pdfium/+/0dadcc6fdab7ad1f2ee95d763f31aad5d3534f93
Patch Set 1 #
Total comments: 1
Patch Set 2 : new approach #
Messages
Total messages: 24 (18 generated)
|