Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix crash unmounting an empty Portal #14820

Merged
merged 2 commits into from
Feb 11, 2019
Merged

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Feb 11, 2019

Fixes #14811. Thanks @KhodorAmmar for the repro case.

The bug is that we won't pop the portal if it had no children. So we shouldn't push its container either.

Copy link
Collaborator

@sophiebits sophiebits left a comment

Choose a reason for hiding this comment

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

More error-prone than I’d like, but I agree with your fix and don’t see a cleaner way to structure it.

@gaearon gaearon merged commit 1fecba9 into facebook:master Feb 11, 2019
@gaearon gaearon deleted the portal-bug branch February 11, 2019 18:40
This was referenced Sep 20, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants