Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: address memory leak when using Blob for downloads #354

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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