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

Memory leak and more specific model invalidation. #145

Merged

Conversation

cristian64
Copy link
Collaborator

A memory leak in MemWatchModel::importRootFromCTFile() has been fixed, and specific dataChanged(), or beginModelReset()/endModelReset()calls are now used where appropriate.

The existing root node (`m_rootNode`) was not being deleted before being
entirely replaced with another pointer.
`dataChanged()`, or `beginModelReset()` and `endModelReset()` are now
used. Note that, whilst `layoutChanged()` can be used, it is generally
used for layout changes, and not specific data changes or full model
resets, and it generally needs a matching `layoutAboutToBeChanged()`
call in advance.
@dreamsyntax dreamsyntax merged commit d493afc into aldelaro5:master May 18, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants