-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle Sink/Source ownership more properly
FairRootManager and FairRun both used to `delete` fSink and fSource. In specific situations (FairRootManager getting destructed before FairRun) this leads to a double delete! Deprecate the old FairRootManager::Set{Source,Sink} APIs that take something like an owning pointer. FairRootManager should only have a non-owning reference to sink and source. To allow FairRun to set it, `friend` it from FairRootManager. See: #1418 (see "Double deleting of file source in FairRootManager and FairRun")
- Loading branch information
1 parent
3385d5e
commit 21930e1
Showing
3 changed files
with
28 additions
and
37 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
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