-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert parented_ptr for TrackCollectionManager in main window
Manual deletion is required to enforce the correct order of destruction. This commit also fixes a double free bug caused by introducing parented_ptr.
- Loading branch information
Showing
2 changed files
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69faf56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parented_ptr only documents a mechanism they is there anyway.
So this commit does not change any machine code.
If you delete a patented_ptr manually nothing bad happen, except the performance penalty of removing the deleted object from it's parent.
I guess we need to splitt the destructor her do de coupple clean up from deleting the object.