Skip to content

Memory leak and more specific model invalidation.#145

Merged
dreamsyntax merged 2 commits intoaldelaro5:masterfrom
cristian64:memory_leak_and_layoutchanged
May 18, 2024
Merged

Memory leak and more specific model invalidation.#145
dreamsyntax merged 2 commits intoaldelaro5:masterfrom
cristian64:memory_leak_and_layoutchanged

Conversation

@cristian64
Copy link
Copy Markdown
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
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