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 leak in theme overrides map when widgets expire #5002

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

dweymouth
Copy link
Contributor

Description:

Ensures that wherever we destroy a widget renderer in the case that it is expired, we also ensure that widget's entry from the theme override map is removed, if any.

Fixes #5000

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@coveralls
Copy link

Coverage Status

coverage: 66.036% (+0.009%) from 66.027%
when pulling 4e81210 on dweymouth:fix-overrides-leak
into 04746cc on fyne-io:develop.

Copy link
Member

@Jacalz Jacalz left a comment

Choose a reason for hiding this comment

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

Is it possible to add a test for this?

@dweymouth
Copy link
Contributor Author

Is it possible to add a test for this?

I don't believe we really have tests for any of the cache cleaning stuff.. If you have any ideas feel free to suggest something but it could be a big refactor...

@dweymouth dweymouth requested a review from andydotxyz July 18, 2024 14:42
@dweymouth dweymouth changed the base branch from develop to release/v2.5.x July 19, 2024 17:12
Copy link
Member

@andydotxyz andydotxyz left a comment

Choose a reason for hiding this comment

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

Thanks so much for getting to this, clean fix.

@dweymouth dweymouth merged commit c8324a5 into fyne-io:release/v2.5.x Jul 23, 2024
12 checks passed
@dweymouth dweymouth deleted the fix-overrides-leak branch July 23, 2024 02:05
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.

4 participants