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: memory leak due to adblocker #139

Merged
merged 1 commit into from Sep 20, 2020
Merged

fix: memory leak due to adblocker #139

merged 1 commit into from Sep 20, 2020

Conversation

Doridian
Copy link
Collaborator

Description

Plugs a memory leak due to some architectural oversights in the adblocker plugin.
It must be detached manually from every page, or it will keep a stale reference alive and prevent it from being GC'd

Testing

Heapdumps and checking via htop for memory allocations

@Doridian Doridian requested a review from jef as a code owner September 20, 2020 23:11
src/adblocker.ts Outdated Show resolved Hide resolved
@Doridian
Copy link
Collaborator Author

Moved to util function in util.ts and kept adblocker file limited to adblocker

@jef jef changed the title fix: Fix memory leak due to adblocker fix: memory leak due to adblocker Sep 20, 2020
@jef jef merged commit 0f6e570 into jef:main Sep 20, 2020
@jef
Copy link
Owner

jef commented Sep 20, 2020

Awesome. Great find!

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.

None yet

3 participants