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 leak when calling remove_control_from_menu_panel #82171

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

timothyqiu
Copy link
Member

The separator allocated in add_control_to_menu_panel() was never freed.

The separator will be leaked if remove_control_from_menu_panel() is called.

@timothyqiu timothyqiu added this to the 4.2 milestone Sep 23, 2023
@timothyqiu timothyqiu requested a review from a team as a code owner September 23, 2023 06:08
@timothyqiu timothyqiu removed the request for review from a team September 23, 2023 06:08
Copy link
Contributor

@YuriSizov YuriSizov left a comment

Choose a reason for hiding this comment

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

Right, big oops on my part.

@YuriSizov
Copy link
Contributor

Ah, but the same needs to be done in the canvas item editor plugin as well, the code is identical between the two.

@timothyqiu timothyqiu changed the title Fix leak when calling Node3DEditor::remove_control_from_menu_panel Fix leak when calling remove_control_from_menu_panel Sep 24, 2023
@akien-mga akien-mga merged commit 04317bc into godotengine:master Sep 24, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the sep-leak branch September 25, 2023 00:58
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.

3 participants