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(color): incorrect method called to free a widget options array #5593

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

philmoz
Copy link
Collaborator

@philmoz philmoz commented Oct 5, 2024

The options array for a widget is allocated with new[]; but was being de-allocated with free() instead of delete[].

Potential crash if there are errors when loading the options for a widget.

@philmoz philmoz added color Related generally to color LCD radios lua bug/regression ↩️ A new version of EdgeTX broke something labels Oct 5, 2024
@philmoz philmoz added this to the 2.11 milestone Oct 5, 2024
@pfeerick pfeerick changed the title fix(color): incorrect method called to free a widget options array. fix(color): incorrect method called to free a widget options array Oct 6, 2024
@pfeerick pfeerick merged commit 22c9ed4 into main Oct 6, 2024
48 checks passed
@pfeerick pfeerick deleted the philmoz/fix-mem-alloc branch October 6, 2024 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/regression ↩️ A new version of EdgeTX broke something color Related generally to color LCD radios lua
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants