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

change parent of actions in config context menu #522

Merged

Conversation

vifactor
Copy link
Collaborator

MainWindow was set as a parent of the context menu actions as a result all actions ever created (upon each ctx menu open) in one program session remained on the heap until program is closed (it is basically some kind of resources leak). Assigning local menu variable as a parent deallocates actions when menu is closed

MainWindow was set as a parent of the context menu actions
as a result all actions ever created (upon each ctx menu open)
in one program session remained on heap until program is closed.
Assigning local menu variable as a parent deallocates actions
when menu is closed

Signed-off-by: Viktor Kopp <[email protected]>
@vifactor vifactor force-pushed the optimize-memory-usage-of-ctx-menu branch from 15f6aee to a596554 Compare August 21, 2024 19:27
@alexmucde alexmucde self-requested a review September 9, 2024 12:45
@alexmucde alexmucde added the bug label Sep 9, 2024
@alexmucde alexmucde added this to the Release v2.27.0 milestone Sep 9, 2024
@alexmucde alexmucde merged commit d504c42 into COVESA:master Sep 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants