Skip to content

Conversation

PekingSpades
Copy link

ref: #353

Memory is already copied when the Blob is created, so it's safe to release the chunks. when a download is triggered, it's safe to use URL.revokeObjectURL. if the browser needs the user to confirm the download for some reason, such as needing the user to confirm the download of a file that came from HTTP, the browser itself will hold a memory copy, so there's no need to worry about the side effect of releasing it. .

@PekingSpades PekingSpades changed the title fix: resolve memory leak and error on aborting Blob downloads fix: address memory leak when using Blob for downloads Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant