mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #17106 from Snuffleupagus/bug-1854145
Don't store page-level data, in the API, after cleanup has run (bug 1854145)
This commit is contained in:
commit
158ab5bf37
1 changed files with 5 additions and 0 deletions
|
@ -2768,6 +2768,11 @@ class WorkerTransport {
|
|||
if (pageProxy.objs.has(id)) {
|
||||
return;
|
||||
}
|
||||
// Don't store data *after* cleanup has successfully run, see bug 1854145.
|
||||
if (pageProxy._intentStates.size === 0) {
|
||||
imageData?.bitmap?.close(); // Release any `ImageBitmap` data.
|
||||
return;
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case "Image":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue