Skip to content

[iOS] Avoid CheckBox memory leak - #16376

Merged
rmarinho merged 3 commits into
mainfrom
checkbox-doesnotleak-ios
Jul 27, 2023
Merged

rmarinho merged 3 commits into
mainfrom
checkbox-doesnotleak-ios

Conversation

@jsuarezruiz

Copy link
Copy Markdown
Contributor

Description of Change

Avoid CheckBox leak on iOS.
image

@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 26, 2023
@rmarinho

Copy link
Copy Markdown
Member

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

}

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

Copy link
Copy Markdown
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
Copy Markdown
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
jsuarezruiz requested a review from rmarinho July 27, 2023 07:16
@jsuarezruiz

Copy link
Copy Markdown
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
@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
@Eilon Eilon added perf/general The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf) and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor legacy-area-perf Startup / Runtime performance labels May 10, 2024
@samhouts samhouts added the fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171 label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-checkbox CheckBox fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171 perf/general The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf) platform/ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants