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

[iOS] Avoid CheckBox memory leak #16376

Merged
merged 3 commits into from Jul 27, 2023
Merged

[iOS] Avoid CheckBox memory leak #16376

merged 3 commits into from Jul 27, 2023

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Avoid CheckBox leak on iOS.
image

@ghost ghost added the area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 26, 2023
@rmarinho
Copy link
Member

Do we need the API change? shouldn't it be nullable?!

@@ -30,5 +43,31 @@ public async Task UpdatingCheckBoxBackgroundColorUpdatesBackground(string colorS

await ValidateHasColor<CheckBoxHandler>(checkBox, color);
}

[Fact(DisplayName = "Does Not Leak")]
public async Task DoesNotLeak()
Copy link
Member

Choose a reason for hiding this comment

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

@jonathanpeppers does it make sense to standardize these tests? These are all basically the same format yea? Can we just use InlineData or a class to provide all the control types and just permutate through them all?

Copy link
Member

Choose a reason for hiding this comment

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

I can do that after the current round of PRs are in.

It could probably be a parameterized test in MemoryTests.cs, as long as the test is reasonably searchable/runnable in the device tests menu.

@jsuarezruiz
Copy link
Contributor Author

Do we need the API change? shouldn't it be nullable?!

Right, changed.

@rmarinho rmarinho merged commit 3ebba98 into main Jul 27, 2023
39 checks passed
@rmarinho rmarinho deleted the checkbox-doesnotleak-ios branch July 27, 2023 15:42
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area/perf 🏎️ Startup / Runtime performance control-checkbox platform/iOS 🍎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants