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: prevent menu gc during popup #20745

Merged
merged 1 commit into from
Oct 28, 2019
Merged

fix: prevent menu gc during popup #20745

merged 1 commit into from
Oct 28, 2019

Conversation

codebytere
Copy link
Member

Description of Change

Fixes #20737.

Ensures that the garbage collector will track the object stored in the handle and they won't get gc'd accidentally while they're open.

cc @MarshallOfSound @zcbenz

Checklist

Release Notes

Notes: Fixed a crash in Menus related to menu.popup().

@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Oct 25, 2019
Copy link
Contributor

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

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

Can you rebase so that Windows CI runs properly? There was an issue where CI was getting skipped that has now been fixed.

@codebytere
Copy link
Member Author

@jkleinsc should be set now!

@jkleinsc jkleinsc merged commit fb8b1fd into master Oct 28, 2019
@release-clerk
Copy link

release-clerk bot commented Oct 28, 2019

Release Notes Persisted

Fixed a crash in Menus related to menu.popup().

@jkleinsc jkleinsc deleted the fix-menu-crash branch October 28, 2019 18:26
@trop
Copy link
Contributor

trop bot commented Oct 28, 2019

I was unable to backport this PR to "5-0-x" cleanly;
you will need to perform this backport manually.

@trop trop bot removed the target/5-0-x label Oct 28, 2019
@trop
Copy link
Contributor

trop bot commented Oct 28, 2019

I was unable to backport this PR to "7-0-x" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Oct 28, 2019

I was unable to backport this PR to "6-1-x" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Oct 28, 2019

I was unable to backport this PR to "8-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Oct 28, 2019

@codebytere has manually backported this PR to "8-x-y", please check out #20785

@trop
Copy link
Contributor

trop bot commented Oct 28, 2019

@codebytere has manually backported this PR to "6-1-x", please check out #20786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
7.2.x
Fixed in 7.0.1
Development

Successfully merging this pull request may close these issues.

crash in AtomMenuController.menuDidClose
3 participants