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 issue #68 memory leak #69

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

paul-bayleaf
Copy link
Contributor

Proposed fix: instead of FiguredBassAbbreviationMapping::s_mappings being a vector of pointers
to FiguredBassAbbreviationMapping objects, make it a vector of objects. The vector's destructor will then delete the objects. Adjust the corresponding code in Tool_fb::getAbbreviatedNumbers accordingly.

This fixes the memory leak. However, I don't know how to test the functionality of my changes. Is there some test data I can use for this? I am not very familiar with Humdrum. Thanks.

@craigsapp craigsapp merged commit c90d891 into craigsapp:master Mar 3, 2023
@paul-bayleaf paul-bayleaf deleted the fix-issue-68-memory-leak branch March 3, 2023 14:33
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