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 #109661: pageSettings are not applied to excerpts #4055

Merged
merged 1 commit into from
Oct 26, 2018

Conversation

anatoly-os
Copy link
Contributor

@anatoly-os anatoly-os commented Oct 25, 2018

See https://musescore.org/en/node/109661.

Fixed potential memory leak by putting cloned Score pointer to a unique_ptr.

This PR includes the best approaches from #3948, #3944, #3986 and #4019.

@anatoly-os
Copy link
Contributor Author

@neGjodsbol could you please review? I tested a bit and it worked properly.

@anatoly-os
Copy link
Contributor Author

Still not working correctly because even cloning the Score* leads to rebuilding main score on fly. Keep investigating...

Add Score::clone()
Add std::uniques_ptr usage to prevent potential memory on the cloned Score*
@anatoly-os
Copy link
Contributor Author

Should be OK now. @neGjodsbol please review. You can checkout this branch locally and compile the code to test. If you are on Windows, you can download the build from AppVeyor (click "Details" to the left of green build above and go to "Artifacts" tab there).

@anatoly-os anatoly-os merged commit d0cb0b9 into musescore:master Oct 26, 2018
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.

1 participant