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 crash when deallocating named colors map #20239

Merged
merged 1 commit into from Jul 18, 2018

Conversation

bojidar-bg
Copy link
Contributor

Fixes #18216.
Not sure why it doesn't happen on 3.0, but it can be cherrypicked there as well.

The code is a bit of a hack, unfortunately.The code is a bit of a hack, unfortunately.

@bojidar-bg bojidar-bg added this to the 2.1 milestone Jul 18, 2018
main/main.cpp Outdated
@@ -1649,6 +1651,8 @@ void Main::cleanup() {
memdelete(script_debugger);
}

Color::_clear_named();
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this could go in unregister_core_types() instead? It's already where CoreStringNames and StringName gets cleaned up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eh, didn't notice we already have a place for those, going to move it there :)

Copy link
Member

Choose a reason for hiding this comment

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

Ping me when it's updated, I'm waiting for this last fix to build 2.1.5 RC2.

@akien-mga akien-mga merged commit a533dd9 into godotengine:2.1 Jul 18, 2018
@akien-mga
Copy link
Member

Thanks! Might be worth PR'ing for master and then cherry-picking for 3.0 too, just to be sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants