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

Element-R: Fix resource leaks in verification logic #4263

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 21, 2024

Fixes a couple of reference cycles which could cause objects to be leaked, ultimately meaning that we hold open a connection to IndexedDB, exacerbating element-hq/element-web#25779.

Requires #4264

Should be reviewable commit-by-commit.

The only reason it was an inner function in the first place was to avoid
storing a reference in the class to `outgoingRequestProcessor`. That changed
with d1dec4c.
@richvdh richvdh requested review from a team as code owners June 21, 2024 10:38
@richvdh richvdh marked this pull request as draft June 21, 2024 10:39
@richvdh
Copy link
Member Author

richvdh commented Jun 21, 2024

I'm going to split this into two PRs (done)

@richvdh richvdh force-pushed the rav/element-r/fix_verification_leak branch from 90e0ec3 to dc2bed9 Compare June 21, 2024 10:41
@richvdh richvdh removed request for a team and MidhunSureshR June 21, 2024 10:42
Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, nice spot.

@richvdh richvdh added this pull request to the merge queue Jun 21, 2024
Merged via the queue into develop with commit 4ccb72c Jun 21, 2024
27 checks passed
@richvdh richvdh deleted the rav/element-r/fix_verification_leak branch June 21, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants