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] Fix crash disposing TabbedPage #10594

Merged
merged 9 commits into from
Oct 11, 2022
Merged

[iOS] Fix crash disposing TabbedPage #10594

merged 9 commits into from
Oct 11, 2022

Conversation

PureWeen
Copy link
Member

Description of Change

Fix issue disposing TabbedPage on iOS. For the compatibility handlers the Element is being accessed through a shim. The problem with doing this is that the shim nulls out the element before the dispose call happens. I realize that I could have reversed the calls inside the shim so dispose is called before the element is set to null but it seems really risky to change the ordering of things at this point. So, I instead went down a path of least change. I also applied this concept to a few other compatibility handlers we have.

Issues Fixed

Fixes #10362

@PureWeen PureWeen enabled auto-merge (squash) October 11, 2022 15:50
@PureWeen PureWeen merged commit 643ee0d into main Oct 11, 2022
@PureWeen PureWeen deleted the fix-10362-alternative branch October 11, 2022 16:17
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS NPE on navigating away from TabbedPage
2 participants