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 use after free in redo of "Create Custom Bone2D(s) from Node(s)" #99800

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

amarsero
Copy link
Contributor

Fixes #97652

Using "queue_free" on the undo of the creation of the Bone2D meant that on the redo the Bone2D was already deleted.

Replaced it with "add_do_reference", so when the Action of the undo_redo is destroyed, also destroys the Bone2D.

@amarsero amarsero requested a review from a team as a code owner November 28, 2024 16:03
@tetrapod00 tetrapod00 added this to the 4.4 milestone Nov 28, 2024
@akien-mga
Copy link
Member

For the record, your commit seems not to be linked to your GitHub account. See: Why are my commits linked to the wrong user? for more info.

Your Gut identity in this commit is = <=>.

Using "queue_free" on the undo of the creation of the Bone2D meant that on the redo the Bone2D was already deleted.

Replaced it with "add_do_reference", so when the Action of the undo_redo is destroyed, also destroys the Bone2D.
@amarsero
Copy link
Contributor Author

Found the culprit
git config user.email = "amarsero@gmail.com"
That's why my email and name was '='

Thanks!

@AThousandShips AThousandShips changed the title Fixes use after free in redo of "Create Custom Bone2D(s) from Node(s)" Fix use after free in redo of "Create Custom Bone2D(s) from Node(s)" Nov 29, 2024
@Repiteo Repiteo merged commit e55ea94 into godotengine:master Dec 30, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 30, 2024

Thanks! Congratulations on your first merged contribution! 🎉

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.

Crashes on "Make Bone2D Node(s) from Node(s)" redo
5 participants