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 memory leaks scenario 3 #34

Merged
merged 2 commits into from
Dec 25, 2020
Merged

Fix memory leaks scenario 3 #34

merged 2 commits into from
Dec 25, 2020

Conversation

lavigne958
Copy link
Collaborator

Fix memory leaks after running scenario 3.

Added necessary destructors, delete all keyframes in timeline destructor, use QVariantList for keyframe list, do not manually allocate the list anymore, create a local list and copy it into QVariantList, a little bit more code but less memory management.

replace all occurrences of constant numbers for Qt::ItemDataRole with pre-defines constants.

@lavigne958 lavigne958 self-assigned this Dec 25, 2020
@lavigne958 lavigne958 merged commit fc856d0 into master Dec 25, 2020
@lavigne958 lavigne958 deleted the fix_memleaks_scenario_3 branch December 25, 2020 21:06
@lavigne958
Copy link
Collaborator Author

relates to #22

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